listview drag and drop

  • Thread starter Thread starter MAF
  • Start date Start date
M

MAF

I have created my own user control that is a simple control with a menu and
a list view. I want to invoke a drag and drop. here is where I run into a
problem the event never fires on the form.

if my control is named lvwVariable within my user control what do I need to
add in order to initiate the dragevent?

Here is a sample of what I have but I am not sure what parameters I am
suppose to use with the RaiseDragEvent
private void lvwVariable_ItemDrag(object sender, ItemDragEventArgs e)

{

this.RaiseDragEvent(sender, e.Item)???

}
 
You should call the Control.DoDragDrop method in the ItemDrag event.

----------------
-Atul, Sky Software http://www.ssware.com
Shell MegaPack For .Net & ActiveX
Windows Explorer GUI Controls
&
Quick-Launch Like Appbars, MSN/Office2003 Style Popups,
System Tray Icons and Shortcuts/Internet Shortcuts
 
Back
Top