Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Drag and Drop
Message
De
27/08/2002 17:03:20
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Titre:
Drag and Drop
Divers
Thread ID:
00694248
Message ID:
00694248
Vues:
50
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform