Mouse pointer position when pointer is not on winform

Solution 1:

You can do it some other ways. Here is a quick and simple way-

private void timer1_Tick(object sender, EventArgs e)
{
    lblXPosition.Text = MousePosition.X.ToString();
    lblYPosition.Text = MousePosition.Y.ToString();
}

Timer interval time 500 is well enough to do the job. It works even if your pointer is outside of form.