if you want to get the point using the forms events
in form_clickevent or any click event for that matter
use the event arguments, the location of the click is there
Code:Private Sub Form1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Click Dim message As String message = DirectCast(e, System.Windows.Forms.MouseEventArgs).X & "," & DirectCast(e, System.Windows.Forms.MouseEventArgs).Y MessageBox.Show(message) End Sub





Reply With Quote