level 6
这个我试过了,不行,如果分别在click和mousedown事件内部加入print语句,就会出现后者事件执行了两次,先执行mousedown然后执行click
2011年11月01日 06点11分
4
level 13
Option Explicit
Dim IsRight As Boolean
Private Sub Form_Click()
If IsRight = False Then MsgBox "click"
End Sub
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 1 Then
IsRight = False
ElseIf Button = 2 Then
IsRight = True
End If
End Sub
2011年11月01日 06点11分
8
回复 艺天的過 :意思就是用来区分鼠标 左键和右键的点击,达到只有左键才有的点击效果
2014年04月25日 07点04分
吧务
level 15
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 2 Then MsgBox "您单击了右键"
End Sub
2011年11月01日 06点11分
9
level 13
问下缩进杂弄的?我缩进的代码发这里来都没有了缩进...
2011年11月01日 06点11分
10