编写如下程序: Private Sub Form_Click() Print“Welcome!” End Sub PfivMe SUb Form MouseDown(Button As Integer,Shift As Integer,X As Singl

admin2015-11-24  36

问题 编写如下程序:
Private Sub Form_Click()
Print“Welcome!”
End Sub
PfivMe SUb Form MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single)
Print“欢迎!”
End Sub
Pfivme SUb Form_MouseUp(Button As Integer,Shift As Integer,X As Single,Y As Single)
Print“热烈欢

选项 A、欢迎!热烈欢迎!Welcome!
B、欢迎!Welcome!热烈欢迎!
C、Welcome!欢迎!热烈欢迎!  
D、Welcome!热烈欢迎!欢迎!

答案A

解析 鼠标事件分点击事件和状态事件:其中,点击事件有单击事件(click)和双击事件(DblClick),这两个事件不区分左键和右键:状态事件又分为按下事件(MouseD0wn)、移动事件(M0useMove)和弹起事件(M0useUp),这3个事件能够区分出鼠标的左键、右键和中间键。当在控件和窗体上单击鼠标左键的时候,首先触发按下事件,然后触发单击事件,最后触发弹起事件。
转载请注明原文地址:https://kaotiyun.com/show/QRLp777K
0

最新回复(0)