请教,在VB当中如何调用指定菜单项的单击事件

如题所述

Private Sub menu_Click(Index As Integer)
If Index = 0 Then
MsgBox "hello world"
ElseIf Index = 1 Then
MsgBox "close"
End If
End Sub

直接在窗体上点菜单 就可以进入对应的菜单单击事件
温馨提示:答案为网友推荐,仅供参考
相似回答