设已经在“菜单编辑器”中设计了窗体的快捷菜单,其顶级菜单为Bs,取消其“可见”属性.运行时,在以下事件过程中,可以使快捷菜单响应鼠标右键菜单的是( )。

admin2012-12-08  29

问题 设已经在“菜单编辑器”中设计了窗体的快捷菜单,其顶级菜单为Bs,取消其“可见”属性.运行时,在以下事件过程中,可以使快捷菜单响应鼠标右键菜单的是(     )。

选项 A、Private Sub Form MouseDown(Button As Integer,Shift As Integer,X As Single,
Y As Single)
    If Button=2 Then PopupMenu Bs,2
    End Sub
B、Private Sub Form Mouse Down(Button As Integer,Shift As Integer,X As Single,Y As Single)
    PopupMenU Bs
    End Sub
C、Private Sub Form MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single)
    PopupMenu Bs,0
    End Sub
D、Private Sub Form—MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single)
    If(Button=vbLeftButton)Or(Button=vbRightButton)Then PopupMenu Bs
    End Sub

答案A

解析
转载请注明原文地址:https://kaotiyun.com/show/mkhp777K
0

最新回复(0)