Drag/Drop and Copy Control in a TreeView


Drag/Drop and Copy Control in a TreeView


Open Visual Basic 2008, create a new Windows Application and drag two Treeview in the Form. Name it“trview_left” and “trview_right”.

After that, click the two Treeviews and go to the properties. In the properties, click the events that look like a lightning symbol and double click the Drag/Drop event handler. And do this following code.

Declare this constant variable above the sub procedure.

Then, click the method name and choose the Drag/Enter events handler, and do this following code.

Go back to the method name again and choose the Item/Drag event handler and do this following code.

You can download the complete source code. click here

No comments:

Post a Comment