Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Drag and Drop
Message
From
27/08/2002 17:03:20
 
 
To
All
General information
Forum:
ASP.NET
Category:
Forms
Title:
Drag and Drop
Miscellaneous
Thread ID:
00694248
Message ID:
00694248
Views:
51
Anyone doing much with drag-and-drop? I'm trying to get a control on a Windows form to work. I have a TreeView on the left side, a ListView on the right ... your typical Windows Explorer type of control. I want to drag icons between the two. I've got it sort of working. I can drag icons in either direction, adding and removing them from either the TreeView or the ListView as needed. But, so far I haven't figured out how to drop a ListViewItem into any node of the Tree. I have only been able to drop it into whichever node is already selected. Obviously not all that intuitive for the user. I need to be able to expand a node if it is not already expanded and/or to have it become the selected node if the mouse hovers over it.

I can't for the life of me figure out how to do this. The MouseHover() eventhandler is probably where this code goes, but I can't figure it out and I haven't been able to find any examples.

Help!

TIA,
~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Next
Reply
Map
View

Click here to load this message in the networking platform