Well my friend, I think you posted to the wrong board;)
Luckily, you found an expert. Capturing mice is easy! Just get a trap and some cheese and the mouse is as good as gone!!! (Unless, he's the one from "Mouse Hunt")
OK! On the serious side... To get the point OUTSIDE of the form, use the Windows API.
[DllImport("user32.dll")] static extern int GetCursorPos( out System.Drawing.Point pnt);
One way you could do this is to create another invisible form, maximize it, and handle the events from there.
<A href="http://msdn.microsoft.com/vbasic/using/columns/adventures/default.aspx pull=/library/en-us/dnadvnet/html/vbnet11122002.asp">This MSDN article</a> should provide the needed details on how to do this.
Capturing the mouse
Torbjorn
Alternately, you can look at Control.MousePosition.
Hope this helps.
-Ari
jdcal
Luckily, you found an expert. Capturing mice is easy! Just get a trap and some cheese and the mouse is as good as gone!!! (Unless, he's the one from "Mouse Hunt")
OK! On the serious side...
To get the point OUTSIDE of the form, use the Windows API.
[DllImport("user32.dll")]
static extern int GetCursorPos( out System.Drawing.Point pnt);
Jonface
<A href="http://msdn.microsoft.com/vbasic/using/columns/adventures/default.aspx pull=/library/en-us/dnadvnet/html/vbnet11122002.asp">This MSDN article</a> should provide the needed details on how to do this.