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

  

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

}

 


Ghanashyam Nayak

To know more about me, you can follow me on Facebook :http://www.facebook.com/nayak.ghanashyam

COMMENT USING

PREMIUM SPONSORS

Hire Mobile & Web Developer on demand. 100% satisfaction. Try for 1 week or Money Back. Local and remote developers available all over USA.

Latest Blogs