PDA

View Full Version : tabstrip in VB6 (WXP-Pro)



mattmac24
03-28-2004, 11:35 PM
i am making aprogram in VB(first one) and i want to add a tab menu in. i have added it in and chosen my little menus. But how do i move stuff from my main form into the secend option of the tab menu?

at the moment all i can do it drg stuff ontop of the tab menu but i want to be able to add it to the second menu, and the third....ect.


thanks in advance,
sorry for the newbie question.

and if you dont get what i mean by tab strip you can get one up by right clicking on your desktop and going to properties, its the thing up the top that says settings, appearance ect.


matt

Brf
03-29-2004, 07:53 AM
The "tabstrip" found in the Microsoft Common Controls does not work that way. It doesnt really have multiple pages... all it does is trigger your program that a tab has been clicked and your program is responsible for hiding or showing the controls for each page....

The control you want to use is called "Microsoft Tabbed Dialog Control" and is found in TABCTL32.OCX.

mattmac24
03-29-2004, 01:55 PM
ok i see now , thanks heaps.
but how do i add to the tab strip?
the only way i can get items in the tab is to create buttons over the tab. i cant drag my existing ones in.


thanks,
matt

Brf
03-29-2004, 02:12 PM
If you are using a tabstrip... I dont think it is a container, so you cannot really use it to hold other controls.

If you are using the Tabbed Dialog Control, you can either create the controls on it, or you can cut-and-paste them onto the control.