Edit

Share via


ListViewArray.ItemDrag Event

Definition

Occurs when the user begins dragging an item.

public:
 event System::Windows::Forms::ItemDragEventHandler ^ ItemDrag;
public event System.Windows.Forms.ItemDragEventHandler ItemDrag;
member this.ItemDrag : System.Windows.Forms.ItemDragEventHandler 
Public Custom Event ItemDrag As ItemDragEventHandler 
Public Event ItemDrag As ItemDragEventHandler 

Event Type

Remarks

The ItemDrag event occurs when the user begins dragging an item. Typically the event handler for the ItemDrag event performs the task of dragging by calling the DoDragDrop method. You can use this event to perform the tasks necessary to drag items into and out of your application's ListView control.

For more information about how to handle events, see Handling and Raising Events.

Note

Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

Applies to