hi expert
i wanna to set the mouseposition to Form Caption even the mouse is in outside the form
i ovveride wndproc method and check for this Winodws Message (WM_MOUSEMOVE) but when the mouse is hover the Form my codes work successfully
when i move the mouse outside the form my code doesn't work
my code is
in Form1 I wrote
Code:
const int WM_MOUSEMOVE = 0x0200;
protected override void WndProc(ref Message m)
{
if (m.Msg == WM_MOUSEMOVE)
this.Text = MousePosition.X.ToString() + "," + MousePosition.Y.ToString();
base.WndProc(ref m);
}
plz help me
thanks