Quote Originally Posted by JohnRChick
I haev a picture, and I'm currently coding in the picturebox_Clicked method. How can I differentiate between which mouse button is being clicked here and do different tasks..
Ex.
Right button -- msgbox "right"
left button -- msgbox "left"
Hi,

You could try this;

VB Code:
  1. Private Sub Form1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseDown
  2.         If e.Button = MouseButtons.Left Then
  3.             TextBox1.Text = "Button Left" & Space(1) + CStr(e.X) + "," + CStr(e.Y)
  4.         End If
  5.         If e.Button = MouseButtons.Right Then
  6.             TextBox1.Text = "Button Right" & Space(1) + CStr(e.X) + "," + CStr(e.Y)
  7.         End If
  8.     End Sub

I couldn't find anything more.

sparrow1