Custom Drag Event

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I need to Drag & Drop some items between two controls.
Source control don't support dragging
Destination control can receive drag events.
How can I raise my own Drag event and attach some properties to it
If it's possible where can I start

Thanks in advance :)
 
Override OnMouseDown and set a flag for mouseDown = true;
Override OnMouseMove and if (mouseDown == true) raise the event.

You may want to put a little filter in there to require that they drag the
mouse a few pixels before firing the event - otherwise a twitchy click may
fire the drag event. :)


HTH;
Eric Cadwell
http://www.origincontrols.com
 
Back
Top