Results 1 to 3 of 3

Thread: Tab Control > Microsoft Windows Common Controls

  1. #1

    Thread Starter
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    Can Anyone help me with the Tab Control in Microsoft Common Controls?
    I know how to make different tabs, but how can I make another 'form' appear when I click one of the tabs...
    Just like the ones used in dialogs (word for example)

    I've read something about a picturebox? but I don't know how to use it.
    Any help is apreciated.

    Thanks!
    Jop
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  2. #2
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    554

    Like This

    Okay,

    Firstly lets say we created a form with a Tabstrip and a few picture boxes.

    Remember also that the picture boxes are all the same size and layered one on top of the other, and the idea is to show only the one were interested in (so that means set them all to visible=false at design time)

    And in the form load, click the tab you want to show at start up, so if it was tab 1, then place
    "Tabstrip1.Tabs(1).Selected=True" at the end of your form_load event.

    In the Event for the tabstrip (the default event that we are given when we double click on the tabstrip at design time)place this:
    'show picture box 1 if tab 1 is clicked
    Picture1.visible=(Tabstrip1.tabs(1).selected=true)

    'show picture box 2 if tab 2 is clicked
    Picture2.visible=(Tabstrip1.tabs(2).selected=true)

    'show picture box 3 if tab 3 is clicked
    Picture3.visible=(Tabstrip1.tabs(3).selected=true)

    etc etc

    Doc Zaf
    {;->


  3. #3

    Thread Starter
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    Ok thanks, I'll try it!

    Jop

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