Blog

Display X & Y Mouse Coordinates Of Your Form.

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

}

 


comments
COMMENT USING
PREMIUM SPONSORS
Infragistics is experts in technology and design, and passionate about helping you build highly performant and stylish applications that solve problems, deliver inspiration, and maximize results.
HTML 5 + JQUERY CONTROLS
SPONSORED BY