954,514 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Cursor Postion

(MOUSE CURSOR)
Hello I'm wondering is it possible to set a condition if the mouse cursor's position changes or moves to a certain point , then it will execute a code like drag drop.
Doing it on a windows form application

poorchap
Newbie Poster
6 posts since Sep 2010
Reputation Points: 10
Solved Threads: 0
 

What do you mean by cursor's position changes? Moved to a new input field, moved within an input field? You can add events to controls that would detect either or both of these things.

Or do you mean the mouse cursor? It too has events to handle things.

Momerath
Nearly a Senior Poster
3,386 posts since Aug 2010
Reputation Points: 1,232
Solved Threads: 558
 

sorry i meant the mouse cursor. let's say if the mouse cursor moves a certain distance or location the (x,y) coordinates , then it allows drag-drop to run
do you think it's possible?

poorchap
Newbie Poster
6 posts since Sep 2010
Reputation Points: 10
Solved Threads: 0
 

Attach to the MouseMove event.

Momerath
Nearly a Senior Poster
3,386 posts since Aug 2010
Reputation Points: 1,232
Solved Threads: 558
 

but drag drop is very sensitive i tried using it before, even i try to control the mouse precisely ,trying not to move a little , the drag drop still runs

poorchap
Newbie Poster
6 posts since Sep 2010
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: