borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (browsing Sqlserver database using textbox??)Next Topic (Errors with text files) New Topic New Poll Post Reply
AndreaVB Forum : VB General : SSTab Issues
Poster Message
Tank
Level: Scholar

Registered: 30-09-2004
Posts: 41

icon SSTab Issues

Hi All

I have a form where the user is required to enter a number from 2 - 9. Depending on the number entered will depend on the number of tabs that will appear on the SSTab control.

I Also have two frames that have different things on them that need to be displayed on each tab, but i also need them to be part of an array (to help with knowing which tab the user is messing with).

How the hell do I do this. Do I need to place the two frames into a container of some kind? and how do I place them on each tab, depending on how many tabs there may be?

Any help would be greatly appreciated.
Regards
Tank

13-01-2005 at 03:54 AM
View Profile Send Email to User Show All Posts | Quote Reply
BRMC
Level: VB Lord


Registered: 28-11-2003
Posts: 210
icon Re: SSTab Issues

Hi,

i don't understand clear your problem but try something like that :



Select Case YourUserInput

Case 1
     Me.SSTab1.TabEnabled(1) = True
     Me.SSTab1.TabEnabled(2)=False
Case 2
     Me.SSTab1.TabEnabled(1) = False
     Me.SSTab1.TabEnabled(2)=True
Case Else
     Me.SSTab1.TabEnabled(1) = False
     Me.SSTab1.TabEnabled(2)=False
End Select



that is a way but i don't understand so much so if you will be more clear i try to help you.

You have a predefined number of tab or depends on user input?

And the frame are 2 for each tab or 2 in general?

Bye


____________________________
I don't mind not going to heaven
As long as they've got cigarettes
in hell

13-01-2005 at 08:33 AM
View Profile Send Email to User Show All Posts | Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon Re: SSTab Issues

If you will have two frames on each tab, then it might be better to use Tab strip control (Windows Common Controls), cause it doesnt act as a container, and you will  need to handle it click event, check which button is clicked and perform some action on frames.

SSTab control acts differently, every tab is a container for some controls, and those that exists on one tab will not be shown on another. And if you will be having same controls on every tab, for this reason it might me wiser to use Tab strip.

____________________________
If you find the answer helpful, please mark this topic as solved.

13-01-2005 at 12:25 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB General : SSTab Issues
Previous Topic (browsing Sqlserver database using textbox??)Next Topic (Errors with text files) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder