How To Get Cursor Position In Visual Basic .Net
In This VB.NET Tutorial We Will See How To Get Mouse Coordinates [X ; Y]
Using Visual Basic .NET Programming Language.
Using Visual Basic .NET Programming Language.
Project Source Code:
Public Class VB_MouSE_CR
Private Sub VB_MouSE_CR_MouseClick(sender As Object, e As MouseEventArgs) Handles MyBase.MouseClick
Label1.Text = "X = " & e.X & " ; Y = " & e.Y
End Sub
Private Sub VB_MouSE_CR_MouseMove(sender As Object, e As MouseEventArgs) Handles MyBase.MouseMove
Label1.Text = "X = " & e.X & " ; Y = " & e.Y
End Sub
End Class
///////////////OUTPUT: