L
Logan Mckinley
I need to know where the cursor is (x,y) and when it moves even when it is
not over my form. I know i can get the current location with:
System.Windows.Forms.Cursor.Position.X
System.Windows.Forms.Cursor.Position.X
But that does not raise an event and using a timer would be to processor
intensive. In MFC you would write a mousehook to solve this problem but when
i run the C# MouseHook code for from MSDN
(http://support.microsoft.com/?kbid=318804) it only seems to return anything
when the mouse is over the form. I am guessing i am doing something wrong
with the MouseHook.
Thanks in advance,
~Logan
not over my form. I know i can get the current location with:
System.Windows.Forms.Cursor.Position.X
System.Windows.Forms.Cursor.Position.X
But that does not raise an event and using a timer would be to processor
intensive. In MFC you would write a mousehook to solve this problem but when
i run the C# MouseHook code for from MSDN
(http://support.microsoft.com/?kbid=318804) it only seems to return anything
when the mouse is over the form. I am guessing i am doing something wrong
with the MouseHook.
Thanks in advance,
~Logan