Click to See Complete Forum and Search --> : Mouse pointer in a particular area
newnick
May 31st, 2007, 11:57 AM
Hi,
How would I determine that mouse pointer is in a particular area of my application?
When it goes out of that area I need to change the cursor.
Thnx!
mcmcom
May 31st, 2007, 12:02 PM
this thread tells you how to use the MouseMove event to determine where the mouse is. The example shows labels changing when the mouse moves over them, however the functionality for determining the movements should be the same for your purposes, you will just have to change it a bit to suit your needs
http://www.thescripts.com/forum/thread648549.html
hth,
mcm
newnick
May 31st, 2007, 12:14 PM
Thanks for the link.. But I am looking for some C# samples.
mcmcom
May 31st, 2007, 12:19 PM
see if this helps
its a form fader, but the guy who wrote it extended the mouseleave events to add a boundry so he can tell when the mouse is off his form. Its in C# and should be able to get you going
http://www.codeproject.com/csharp/notanotherformfader.asp
hth,
mcm
newnick
May 31st, 2007, 12:54 PM
Thanks for the link.. this helps!
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.