Click here to Skip to main content
15,879,326 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,

I would like to have a preview line between the items when draging an tree view item.

Like this: Example from Silverlight[^]

I know I could reorder the items with the DragDropEffects.Move option but the preview line would be better.
Any idea?

Best regards
-Alex
Posted

1 solution

I think this Q&A covers the same thing, i.e. making it look like you are physically moving the node.

TreeView DragDrop[^]

And this article covers basic drag and drop;
Introduction to TreeView Drag and Drop (VB.NET)[^]
 
Share this answer
 
Comments
Naresh Guttedar 24-Mar-16 6:30am    
how to get text from treeview drag and drop to text box
DaveAuld 24-Mar-16 8:07am    
You would have to get the index of the item you are moving, extract the text from the relevant property and write it to the text box.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900