I do a drag and drop on a tree view and the control is moving when i drag the node. what property needs to be set to make the treeview stick to the form?
also anyone have a good scrolling treeview drag and drop example?
Printable View
I do a drag and drop on a tree view and the control is moving when i drag the node. what property needs to be set to make the treeview stick to the form?
also anyone have a good scrolling treeview drag and drop example?
You need to supply the treeview with a drag icon, otherwise the whole control appears to be dragged. I'd recommend using OLE drag & drop - it's a lot 'nicer' to work with.
>also anyone have a good scrolling treeview drag and drop example?
Yep - take a look at the source-code for the VBCodeLibrary version 2 at http://codeguru.developer.com/vb/articles/1724.shtml
The treeview control in the program scrolls on dragging/dropping and also uses a custom icon for the drag/drop process.
Chris Eastwood
CodeGuru - the website for developers
http://codeguru.developer.com/vb