如何在VB中检测鼠标左右键同时按下
1个回答
展开全部
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 3 Then
Me.Caption = "左右同时按下"
ElseIf Button = 1 Then
Me.Caption = "左按下"
ElseIf Button = 2 Then
Me.Caption = "右按下"
ElseIf Button = 4 Then
Me.Caption = "轮按下"
End If
End Sub
按住鼠标键,然后在窗体上移动鼠标,然后看标题栏
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询