You can define a class which inherits from the TreeNode class. Your derived class can contain whatever information you need, and implement whatever properties and methods are appropriate, such as references to forms or whatever. Since these objects derive from TreeNode, they can be placed in the treeview and will behave just like TreeNodes, which, of course, is what they are.
You can then determine the selected node, and DirectCast it to your derived type. You can then retrieve whatever custom properties you have defined in your class and have it take appropriate action.
Jeff Mason
Custom Apps, Inc.
www.custom-apps.com