素材巴巴 > 程序开发 >

[VB.NET]单击按钮右键事件

程序开发 2023-09-08 13:55:25
VB.NET源码-156个实用实例哦…… 单击按钮右键事件
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抢沙发~~~~~~~~~``
__________________________________________________________________________
寒一个…… -_-|||
__________________________________________________________________________

标签:

素材巴巴 Copyright © 2013-2021 http://www.sucaibaba.com/. Some Rights Reserved. 备案号:备案中。