Display X & Y Mouse Coordinates Of Your Form.


 

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

}

 


Ebook Download
View all
FileInfo in C#
Read by 9.7k people
Download Now!
Learn
View all