单项选择题
若看到程序中有以下事件过程,则可以肯定的是,当程序运行时______。 Private Sub
Click_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As
Single) Print "VB Program" End Sub
A.用鼠标左键单击名称为“Command1”的命令按钮时,执行此过程
B.用鼠标左键单击名称为“MouseDown”的命令按钮时,执行此过程
C.用鼠标右键单击名称为“MouseDown”的控件时,执行此过程
D.用鼠标左键或右键单击名称为“Click”的控件时,执行此过程
热门试题
单项选择题要求当鼠标在图片框P1中移动时,立即在图片中显示鼠标的位置坐标。下面能正确实现上述功能的事件过程是______。
A.Private Sub P1_MouseMove(Button As Integer,Shift As Integer,XAs Single,Y
As Single) Print X,Y End Sub
B.Private Sub P1_MouseDown(Button As Integer,Shift As Integer,XAs Single,Y
As Single) Picture.Print X,Y End Sub
C.Private Sub P1_MouseMove(Button As Integer,Shift As Integer,XAs Single,Y
As Single) P1.Print X,Y End sub
D.Private Sub Form_MouseMove(Button As Integer Shift As Integer,XAs Single,Y
As Single) P1.Print X,Y End Sub