(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

Recommended Answers

All 4 Replies

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.

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?

Attach to the MouseMove event.

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.