假定已经在菜单编辑器中建立了窗体的弹出式菜单,其顶级菜单的名称为a1,其“可见”属性为False,则程序运行后,可以同时响应鼠标左键单击和右键单击的事件过程是 ______。

admin2013-01-23  47

问题 假定已经在菜单编辑器中建立了窗体的弹出式菜单,其顶级菜单的名称为a1,其“可见”属性为False,则程序运行后,可以同时响应鼠标左键单击和右键单击的事件过程是 ______。

选项 A、Private Sub Form_ MouseDown (Button As Integer, _                         Shift As Integer, X As Single, Y As SinglE)If Button = 1 And Button = 2 Then               PopupMenu al           End If    End Sub
B、Private Sub Form_ MouseDown (Button As Integer, _                          Shift As Integer, X As Single, Y As SinglE)PopupMenu a1    End Sub
C、Private Sub Form_ MouseDown (Button As Integer, _                          Shift As Integer, X As Single, Y As SinglE)If Button = 1 Then             PopupMenu a 1       End If    End Sub
D、Private Sub Form_ MouseDown(Button As Integer, _                          Shift As Integer, X As Single, Y As SinglE)If Button = 2 Then             PopupMenu a 1       End If    End Sub

答案B

解析
转载请注明原文地址:https://jikaoti.com/ti/ocO0FFFM
0

最新回复(0)