[单项选择题] 假定编写了如下事件过程: Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single, Y As Single) If Button=2 ThenPrint "aaaa" End If End Sub 程序运行后,为了在窗体上输出“AAAA”,应按下的鼠标键为
A.左键
B.右键
C.同时按下左、右键
D.按什么键都不显示
参考答案:
B问题解析:
[分析] 在窗体上压下鼠标键,触发Form_M ouseDown事件。参数Button标识鼠标的信息,1表示按下鼠标左键;2表示按下鼠标右键:4表示按下鼠标中间键。当按下鼠标右键时,程序能在窗体上显示字符串“AAAA”。

![[单项选择题] 假定编写了如下事件过程: Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single, Y A [单项选择题] 假定编写了如下事件过程: Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single, Y A](http://www.mshxw.com/aiimages/31/257241.png)
