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

admin2013-01-23  30

问题 设已经在"菜单编辑器"中设计了窗体的快捷菜单,其顶级菜单为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_MouseDown(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

解析 考查弹出式菜单的使用方法。实际上,不管是在窗口顶部菜单条上显示的菜单,还是隐藏的菜单,都可以用PopupMenu方法把它们作为快捷菜单在运行时显示出来。
转载请注明原文地址:https://jikaoti.com/ti/UPO0FFFM
0

最新回复(0)