万能百科  > 计算机   > 

[单项选择题] 假定编写了如下事件过程: Private Sub Form_MouseDown(Button As Integer,Shift As Inte

2021-07-20   

[单项选择题] 假定编写了如下事件过程: 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”。

词条内容仅供参考,如果您需要解决具体问题
(尤其在法律、医学等领域),建议您咨询相关领域专业人士。

标签