(32) 設(shè)已經(jīng)在菜單編輯器中設(shè)計(jì)了窗體的快捷菜單,其頂級(jí)菜單為Bt,取消其"可見"屬性,運(yùn)行時(shí),在以下事件過程中,可以使快捷菜單相應(yīng)鼠標(biāo)右鍵菜單的是
A) Private Sub Form_MouseDown(Button As Integer, Shift As Integer, _
X As Single, Y As Single)
If Button=2 Then PopupMenu Bt, 2
End Sub
B) Private Sub Form_MouseDown(Button As Integer, Shift As Integer, _
X As Single, Y As Single)
PopupMenu Bt
End Sub
C) Private Sub Form_MouseDown(Button As Integer, Shift As Integer, _
X As Single, Y As Single)
PopupMenu Bt,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 Bt
End Sub
正確答案: A
相關(guān)推薦:
在VB中利用遠(yuǎn)程數(shù)據(jù)庫的訪問之應(yīng)用舉例 VB中利用遠(yuǎn)程數(shù)據(jù)庫的訪問之?dāng)?shù)據(jù)處理案例