Get the Mouse Click Button and Position in Windows Project

Chikul
Posted by Chikul under Windows Forms category on | Views : 2522

'Get the Mouse Click Button and Position in Windows Project
Public Class frmMouseDown

Private Sub frmMouseDown_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseDown
MessageBox.Show(String.Format("X = {0} , Y = {1}", e.X, e.Y), String.Format("the {0} Mouse Button hit me at : ", e.Button.ToString()))
End Sub

End Class

Comments or Responses

Login to post response