Results 1 to 4 of 4

Thread: How do I use the MS Tabbed Dialog Control?

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2001
    Posts
    4

    Unhappy How do I use the MS Tabbed Dialog Control?

    I have been trying to figure out how to use this tabbed dialog control (comctl32.ocx i think) for awhile now, i was able to do it once, but i don't remember... The way I had it before was on the TabControl1_click() subroutine was I would get the index of the tab that was active and display a Picture box with the corresponding index ... IE:

    Sub TabControl1_click()
    for i = 0 to 6
    picture1(i).visible=false
    next

    picture1(tabcontrol1.___what_goes_here?___).visible = true
    End Sub

    What do i put in the snippet to get the current and selected tab?

    Thanks in advance... Kage ^_~

    Email me with answer at [email protected]

  2. #2
    Member VbAndersonic's Avatar
    Join Date
    Aug 2001
    Location
    Derby, UK
    Posts
    58
    Im not really sure what you mean, but to find out which tab is being displayed you use Tabcontrol.Tab. This displays the Tab's index (remember it starts indexing at 0). The question wasnt that clear, but I hope this helps.

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2001
    Posts
    4

    Question Let me clarify

    Using the MS comctl32.ocx...(windows common controls) i have a tabbed dialog, the kind on property window pages

    I want to know which tab is the active one when clicked...

    I know that: tabctl1.tabs(x) tells VB that i want to do something with that tab

    What I don't know is how to retrieve the selected tab, these controls are weird and I don't know where to get full documentation on their run-time properties, help with that would be most useful (maybe the comctl1.hlp file?)

    is it something like ;

    X = tabctl1.tab.index? tabctl1.tab?

  4. #4
    Hyperactive Member MikeBAM's Avatar
    Join Date
    Sep 2000
    Location
    Metro Detroit
    Posts
    284
    i dont know if u got the answer yet but maybe:

    picture1(tabcontrol1.tab(i)).visible = true

    does that work?
    ~* )v( ! /< E *~

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