10-15-2007 03:49 PM
10-15-2007 05:48 PM
Hey LMR,
What do you mean by cursor? When the user clicks the mouse button? When the user clicks on a control? When the user clicks on an actual picture of a cursor on your form?
I think what you want is a mouse down or mouse click event. You can read more about those on MSDN. This forum is primarily for Measurement Studio issues.
So basically when you add one of those events then you can put code in there that will do what you want whenever the user clicks. I'm attaching a couple links that might help:
http://msdn2.microsoft.com/en-us/library/system.windows.forms.control.click.aspx
http://msdn2.microsoft.com/en-us/library/system.windows.input.mouse.mousedown.aspx
of course it all depends on what your desired functionality is....
Hope that gets you on the right track,
10-16-2007 08:35 AM
10-16-2007 02:26 PM
Thanks for your replays.
My intend is to detect when user clicks on XYCursor object on a graph so I can display cursor's crossbars. I've tried using BeforeMoveCursor event but that happes only if user starts moving the cursor. If user doesn't want to move the cursor and only clicks on it the BeforeMoveCursor event is not firing.
Any ideas?
Thanks,
LMR