Blog

Display X & Y Mouse Coordinates Of Your Form.

By Ghanashyam Nayak Blogs | Visual C# Apr 11, 2011
In Label It Will Display Mouse X & Y Coordinates Of Form On Form's MouseMove Event

  

//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;

}

 


COMMENT USING