Blog

Display X & Y Mouse Coordinates Of Your Form.

By Ghanashyam Nayak Apr 11 2011
In Label It Will Display Mouse X & Y Coordinates Of Form On Form's MouseMove Event
    • Like
    • Love It
    • Awesome
    • Interesting
    • It's Okay
    • Thumbs Down
  • 6.9k
  • 0

  

//On Form Mouse Move Event

 

private void Form1_MouseMove(object sender, MouseEventArgs e)

{

      //It Will Display Mouse X & Y Coordinates in Label...

        lblXYMouseCoordinates.Text = " X-Coordinate : " + e.X + "  Y -Coordinate : " + e.Y;

}