I'm able to get the mouse position when it is within the form. Here is my code-
private void Form1_MouseMove(object sender, MouseEventArgs e)
{
lblXPosition.Text = MousePosition.X.ToString();
lblYPosition.Text = MousePosition.Y.ToString();
}
But it does not work when the pointer is outside the form. Any suggestion?