|
-
Apr 5th, 2000, 02:07 AM
#1
Thread Starter
Frenzied Member
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.
-
Apr 5th, 2000, 04:47 AM
#2
Fanatic Member
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
{;->
-
Apr 5th, 2000, 09:40 PM
#3
Thread Starter
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|