[VB.NET]单击按钮右键事件
程序开发
2023-09-08 13:55:25
单击按钮右键事件
1.是哪个呢?
2.怎么知道点的是左键还是右键呢?
__________________________________________________________________________
Private Sub Form1_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseClick
If e.Button = Windows.Forms.MouseButtons.Right Then
MsgBox( "Right Click ")
End If
End Sub
__________________________________________________________________________
楼上说的正确!
__________________________________________________________________________
1楼正解...
__________________________________________________________________________
每次都被magicbacon抢沙发~~~~~~~~~``
__________________________________________________________________________
寒一个…… -_-|||
__________________________________________________________________________
1.是哪个呢?
2.怎么知道点的是左键还是右键呢?
__________________________________________________________________________
Private Sub Form1_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseClick
If e.Button = Windows.Forms.MouseButtons.Right Then
MsgBox( "Right Click ")
End If
End Sub
__________________________________________________________________________
楼上说的正确!
__________________________________________________________________________
1楼正解...
__________________________________________________________________________
每次都被magicbacon抢沙发~~~~~~~~~``
__________________________________________________________________________
寒一个…… -_-|||
__________________________________________________________________________
标签:
上一篇:
nginx无法解析url中的中文名静态资源导致带中文的静态链接404
下一篇:
相关文章
-
无相关信息