Reputation: 18159
Well, I have an event handler for when a mouse button is up. I want to check which button was (left or right). This is the function definition:
Private Sub PictureBox2_MouseUp(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox2.MouseUp
I used
e.Button.Left()
to try to get a boolean, but I get an error....
Upvotes: 0
Views: 1263
Reputation: 3338
Try e.Button = Windows.Forms.MouseButtons.Left
:
http://msdn.microsoft.com/en-us/library/system.windows.forms.mouseeventargs.button.aspx
Upvotes: 1
Reputation: 52675
use the button property
If (e.Button = Windows.Forms.MouseButtons.Left) Then
'Do Somthing
End If
Upvotes: 3