[VB.NET] Treeview Tabs

Discussion in 'Code Snippets and Tutorials' started by Lightning, Jun 29, 2010.

  1. Lightning

    Lightning Administrator
    Staff Member

    Joined:
    Nov 8, 2008
    Messages:
    3,021
    Likes Received:
    195
    Gender:
    Male
    Location:
    Florida, USA
  2. Zer0

    Zer0 Level IV

    Joined:
    Mar 2, 2008
    Messages:
    3,037
    Likes Received:
    180
    Location:
    Home sweet home
  3. Lightning

    Lightning Administrator
    Staff Member

    Joined:
    Nov 8, 2008
    Messages:
    3,021
    Likes Received:
    195
    Gender:
    Male
    Location:
    Florida, USA
    How would I get each node to toggle between "pages" (almost like tabs) within my program?

    I've figured out how I would like to design it, but I haven't figured out how it would exactly work in my program o_O...
     
  4. Zer0

    Zer0 Level IV

    Joined:
    Mar 2, 2008
    Messages:
    3,037
    Likes Received:
    180
    Location:
    Home sweet home
    Read the article I linked to. You just have to implement event listeners just like any other GUI component.
     
    Lightning likes this.
  5. Lightning

    Lightning Administrator
    Staff Member

    Joined:
    Nov 8, 2008
    Messages:
    3,021
    Likes Received:
    195
    Gender:
    Male
    Location:
    Florida, USA
    One more question: I've got these nodes in the treeview, but I am confused on how I would make a Panel be visible and the others not when the user clicks a node?

    I changed the property "Tag" of each node to its corresponding panel, but I dunno what to do after that.
     
  6. Zer0

    Zer0 Level IV

    Joined:
    Mar 2, 2008
    Messages:
    3,037
    Likes Received:
    180
    Location:
    Home sweet home
    Hm. I don't actually program in VB so I don't specifically know the code to do it. There should be some way to control the visibility of panels and stuff.