Summary

VLF Windows Application Development

Summary

VFW110 – Simple Drag and Drop

Important Observations

  • The DragOver event occurs when a drag and drop operation is in process. You can use this event to monitor the mouse pointer as it enters, leaves, or rests directly over a valid target. The mouse pointer position determines the target object that receives this event.
  • The DragDrop event occurs when the mouse button is released. During this event, you would normally populate the target with the dragged data.

Tips & Techniques

  • Refer to the Feature Help (F2) for more details about the Drag and Drop properties and events.

What I Should Know

  • How to enable a control for Drag and Drop.
  • How to use the DragOver and DragDrop events.
  • The purpose of the AcceptDrop property.
  • How to Drag and Drop items between two controls in the same form.