Results 1 to 3 of 3

Thread: [RESOLVED] Tabstrip and Treeview

  1. #1

    Thread Starter
    Hyperactive Member jlt7's Avatar
    Join Date
    Jan 2006
    Posts
    413

    Resolved [RESOLVED] Tabstrip and Treeview

    I have 4 tabs in my program and a treeview. What I want to do is when I click certain nodes in my treeview the first 2 tabs are disabled and it automatically goes to tab3.
    example

    Treeview(root)
    --Tree1
    -----Tree2
    --Tree3
    -----Tree4
    -----Tree5

    If I click on Tree 2,4 or 5 then tab1 and tab2 will disable and tab3 and tab4 will be enabled will goto tab3 automatically.

    Just the opposite if click in tree 1 or 3, tab3 and tab4 will be disabled and tab1 and tab2 will enable and goto tab1 automatically.

  2. #2
    PowerPoster gavio's Avatar
    Join Date
    Feb 2006
    Location
    GMT+1
    Posts
    4,462

    Re: Tabstrip and Treeview

    You can't disable certain tab/s in a TabStrip... you can remove theme/it for example. To "select" a certain tab:
    VB Code:
    1. Private Sub TreeView1_Click()
    2.     Select Case (TreeView1.SelectedItem.Index)
    3.         Case 1:
    4.             TabStrip1.Tabs(1).Selected = True
    5.         Case 2:
    6.             TabStrip1.Tabs(3).Selected = True
    7.         '...
    8.             '...
    9.     End Select
    10. End Sub

  3. #3

    Thread Starter
    Hyperactive Member jlt7's Avatar
    Join Date
    Jan 2006
    Posts
    413

    Re: Tabstrip and Treeview

    Thank you Gavio for the help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width