这样写。因为你的名称Option与关键字重复了,所以迹液要加上方括号。
===轮芹====腊州毕===
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 2 Then
PopupMenu [option] '别看这一句奇怪,但是就得这样。
End If
End Sub
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 2 Then
Me.PopupMenu option1
End If
End Sub
你改个名字吧 可能因为是关顷差键字的缘故~还有啊~用PopupMenu 必须扰镇要有缓乎粗子菜单的~