We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now


SubClassing the Node type

clsmaster asked
Medium Priority
Last Modified: 2010-04-30
Here is the problem I'm using the TreeView control to represent a system that is being developed be the customers, but I need to save more information then I can currently save in a node. ie currently I'm using the Text Property, Tag Property, and Icon Property.  But I need one more piece of information saved with each node.

What I was wondering is if it is possible to subclass the node class and make the TreeView control using this new node type.  The new node type would have an additional property called Number (or something more descriptive).

I need some examples on how this can be accomplished.
Watch Question

Hi I pick this code form : http://www.quiksoft.com/sitemapper/property.htm#DownloadMenus

I hope it help you ...


setup the first branch titled "Products" and add two nodes.
 <branch  name="Products">
      <item href="http://www.quiksoft.com/sitemapper" name="SiteMapper ActiveX Tree Control">
      <item href="http://www.quiksoft.com/easymail"  name="EasyMail ActiveX E-Mail Controls">

 'we will now add a node with no children to the top level.
 <item name="Services" href="http://www.quiksoft.com/services>

 'setup the links branch and add nodes and sub branches
 <branch name="Links">
 <branch name="Links on our site" bitmap=101>
        <item name="Programming information" href="http://www.quiksoft.com/programming.htm">
        <item name="Technical Support"   href="http//www.quiksoft.com/support">
 <branch name="Links on other sites" bitmap=101>
        <item name="CNet" href="http://www.cnet.com">
        <branch name="Microsoft" bitmap=101>
               <item name="Sitebuilders Network" href="http://www.microsoft.com/sitebuilder"  bitmap=2>
               <item name="Home Page" href="http://www.microsoft.com">



I'm using the treeview control that comes with VB5.0 not HTML.
Unlock this solution and get a sample of our free trial.
(No credit card required)
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.