Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




SSTab Tabstrip Control Question


How do I add tabs to a SSTab1 control at run-time dynamically? If this is not possible, do the tabs have a Visibkle property so that I can hide/unhide tabs?

Thanks!




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Tying Up Forms. Tabstrip Or Sstab Control ?
i have 3 forms (pretty controls intensive) that I am looking to tie up in a single tabbed form. I have looked at several previous posts and I think sstab control is the way to go because it is a container unlike the tabstrip. Also how do i Bind a tabbed page to one form.

thanks!

SStab VS TabStrip
I know the SStab control is atleast 10X as easy to use than the Tabstrip control....but the Tabstrip must have some advantage? After all, they do include it in VB I realize that no one ever uses it but if someone has, can u please tell me why? Does it have ANY advantages whatsoever? Just wondering...

TabStrip & SSTab ?
OK, I see:

SSTab:
I can choose colors for the foreground and background (but not the background of the tabs themselves)
I do no have a tab section on the properties (to change which position the tabs are in.

TabStrip
No color selection
Tab section is on the properties.

Why isn't one of these 'better' than the other? They are each missing a feature or two compared to the other one.

Is there a better TAB component somewhere I'm missing?

Thanks.....

Tabstrip Or SSTab?
I want to use tabs in one of my projects, but don't know wether to use Tabstrip or SSTab can anyone tell me the differences between the two.

thanks in advance

MICK

Using TabStrip / SSTAB
Hello,

I've just wonder about the following situation:

I have two tabs.
I have a control on one of the tabs, that I want to "copy" it to the other tab.

What is "copy"? I just want to copy its display. I do not want to copy all the code behind.

I know I can just copy its data - But I wonder if there is any smarter way. May I configure the identical controls as array?

Thanks!

Tabstrip Vs SStab
I am creating a new UI for our main software product and need a tabbed interface, in fact it will be a major feature of the UI. I have looked into the discussions about SStab vs Tabstrip and have some uncertainty based on what my code needs to do.
The UI must be adaptable and support 5 to 8 tabs based on users options. (SStab seems better)
50 percent of the tabbed area contains redundant information/controls, I would not like the maintenance on duplicate (up to 8) sets of controls/code. (tabstrip seems better - I could eliminate any redundancy by using a single frame for all tabs.)
I need an icon along with the caption in the tab (Can I even do that with tab strip?)
I am concerned that subsequent code maintence/bug fixes might be more challenging and obtuse due to using the stacked/hidden frames (needed per individual tab information) in the tabstrip scenario. (Any member of the software team may be required to modify another member's code.)
Also is sstab more unstable?
Any thoughts on which route seems better?

TabStrip Vs. SSTab
I need to create an application that uses a Tab control. VB 6 offers two versions of that control.
The TabStrip control and SSTab.
Now, I wonder which one to use.

Any hints welcome.
(The VB docs don't even mention the SSTab control in the "Component Tools Guide". I wonder why)

TabStrip And SSTab For Webbrowser
How I can use tabs in a tabstrip or sstab for webbrowser ? I want to create tabs like in Mozilla Firefox, IE 7 and other popular webbrowsers.

How To Highlight The Tab(s) In Tabstrip Or Sstab?
if i got 50 tabs in tabstrip....
how could i highlight the tabs( some tabs) among the tabstrip. ( so user no need to click on every tab, they just need to see the highlighted tab and go for the tab)
thanks




Edited by - wtkm on 6/10/2007 6:03:55 PM

Difference Between SSTAB And TabStrip?
anyone got a good and defined explanation on the difference of SSTAB and TabStrip? Are there anymore tab control that i missed? thanks

Easy TabStrip (not SSTab)
My co-worker has been using VB a while, and i asked him how to make a bank of tabs that were easy to edit and place components in (like a frame)

I know that with SSTab, can cut a component off the main form and paste it into the SSTab and the SSTab acts like a frame, handles visibility etc... but SSTab looks retarded

He tells me that there is a tab control that i can use in the same way, so i went looking for it. After adding every control possible in by VB 6, i have found 5 Tab like components:

SSTab - Tabbed Control
TabStrip - Common Controls 1
TabStrip - ? Control
TabStrip2 - Forms COntrol
MultiPage - Forms Control

I dont know the difference between the 2 tabstrip.. maybe the same thing inside a different ocx? i drew them all on a form and played with them.

Only SSTab allowed me to paste a component into the strip..
However.. TabStrip2 and MultiPage, have a menu option of EDIT, when i right click on them. With Multipage, i can bring up a small toolbox that contains some standard components, and I can draw these components into the MultiPage.. but they do not seem to integrate well with vb6.. if i draw a button, then double click it, most times it will not jump to code and open up a Command1_Clicked() sub for me :/

So, does anyone know which component i must reference, and which control it gives me, so that i can make a tabbed control area without resorting to messing around with Frames or PictureBoxes, ZOrder and hiding/showing things?

thanks

edit; forgot to say that, although TabStrip2 has EDIT option.. it does not edit anything.. not like MultiPage allows editing, anyway..

SSTab Or Tabstrip - How To Stop Tab Change In Onclick()
I have an application which asks for user input.
In it, there is a screen/form which is using a Tabstrip or an SSTab.
(I have tried both, but can't get either one to do what I want).

The SStab (or tabstrip) has 5 tabs.
On each one is a different set of information which the user must enter
different information.
The idea is,
they must enter the info on tab1 FIRST, before proceeding to tab2.

After they enter the info on tab1, then when they click on tab2 (or any other),
I invoke an editing routine to validate the info.
If the info is NOT valid, I give them an error message,
and return them to tab1.
I can handle the going back to tab1 by setting a boolean and testing
for it's value to see if we have been here before or not, to stop a loop.
This works just fine.

BUT....... (dammit), the tab they selected SHOWS up first,
then my error message shows, then they go back to the offending tab.

How can I STOP the selected tab from showing, unless they pass my edits ????

In other words, how can I interrupt the process of showing the selected tab ???

Thanks for any ideas

SSTab & TabStrip Controls - REMOVE At Development Time
Hi there.
I might not see some basic staff that is just around the corner. but..
I am in design view of the form. I have 5 tabs havely designed Now, customer does not want to have a third tab at all. How ca I remove it from this control completely. Note, I now I can mak invisible (.visible=false) But I want to get rid of i completely.
Please help.

Looking forward to prompt reply.

HELP! Line 31: Class TabDlg.SSTab Of Control SSTab
One of my forms has tabs and I loaded Class TabDlg.SSTab from Project..Components..Microsoft Tabbed Dialog Control 6.0

And it was working fine until today. I added a new form to my project today and ran my program just fine. I saved it and now when I try to open my program I keep getting the error:
Line 31: Class TabDlg.SSTab of control SSTab.
If I try to load it, the error I get is:
Name Conflicts with existing module, project or object library.
I can't figure out what this means.
HELP!

Add Control In TabStrip
Currently, i have using the script to add the control in TabStrip. The error prompt said that compile error: Can't assign to read-only property. Any clue how to solve the problem? I tried to set the textbox property for multipleline = true but error prompt said that the visual basic has encountered a problem and needs to close. We are sorry for the inconvenience.

Please help... Thanks...


Below is my script :

Code:
Dim x As Integer
Dim iTab As Integer
Dim iCount As Integer
Dim sFrame As String
Dim sCtlType As String
Dim sCaption As String
Dim sValue As String
Dim j As Integer

bLoading = True
iOldControls = Controls.Count

iCount = 1

For iTab = 1 To 1

If TabStrip1.Tabs.Count < iTab Then
TabStrip1.Tabs.Add
End If
TabStrip1.Tabs(iTab).Caption = "Tab Caption" & CStr(iTab)

sFrame = "Frame" & CStr(TabStrip1.Tabs.Count)
Controls.Add "VB.Frame", sFrame, Me
'Position the frame and set its properties.
With Controls(sFrame)
.Top = TabStrip1.ClientTop + 150
.Left = TabStrip1.ClientLeft + 60
.Height = TabStrip1.ClientHeight - 150
.Width = TabStrip1.ClientWidth - VScroll1.Width - 120
.Visible = False
.ZOrder (0)
End With

colScroll.Add 0, sFrame

For x = 0 To 1

Dim s As Integer
s = 0
For j = 0 To 5
Select Case j
Case 0
sCtlType = "Combobox"
Case 1
sCtlType = "Label"
Case 2 To 5
sCtlType = "Textbox"
s = s + 1
End Select

Select Case sCtlType
Case "Textbox"
Call Controls.Add("VB.TextBox", "Text" & CStr(iCount), Controls(sFrame))
Load Text0(iCount)
Set Text0(iCount).Container = Controls(sFrame)
With Text0(iCount)
.Visible = True
.Width = 2000
.Top = 500 + (x * 2200)
.Tag = .Top
.Left = 1000 + (s * 2030)
.Height = 2000
.Text = sValue
.MultiLine = True
End With
Controls.Remove "Text" & CStr(iCount)
Case "Combobox"
Call Controls.Add("VB.ComboBox", "Combo" & CStr(iCount), Controls(sFrame))
Load Combo0(iCount)
Set Combo0(iCount).Container = Controls(sFrame)
With Combo0(iCount)
.Visible = True
.Width = 2000
.Top = 500 + (x * 2200)
.Tag = .Top
.Left = 600 + (j * 300)
.Text = sValue
.AddItem "Critical"
.AddItem "Important"
.AddItem "Moderate"
End With
Controls.Remove "Combo" & CStr(iCount)
Case "Label"
Call Controls.Add("VB.Label", "Label" & CStr(iCount), Controls(sFrame))
Load Label0(iCount)
Set Label0(iCount).Container = Controls(sFrame)
With Label0(iCount)
.Visible = True
.Width = 1500
.Top = 3200 + (x * 2200)
.Tag = .Top
.Left = 600 + (j * 300)
.Height = 195
.Caption = "Percentage"
End With

End Select
iCount = iCount + 1

Next j


' Add a label for each new control added.

sCaption = CStr(x) + 1
Call Controls.Add("VB.Label", "Label" & CStr(iCount), Controls(sFrame))
Load Label0(iCount)
Set Label0(iCount).Container = Controls(sFrame)
With Label0(iCount)
.Visible = True
.Width = 300
.Top = 200 + (x * 1200)
.Tag = .Top
.Left = 100
.Height = 195
.Caption = sCaption
End With

Next
Controls(sFrame).Tag = x * 400
Next

bLoading = False

TabStrip1.Tabs(1).Selected = True
Call pUpdateScrollBar("Frame1")

About TabStrip Control
Hi,

I've a runtime problem on TabStrips...
When I create a new Tab on a TabStrip control while runtime (like TabStrip1.Tabs.Add) how can I add new controls to this new tab like some buttons or something else?

Thanks, happy programming...

Tabstrip Control
I've used Delphi, and when i got VB, i was surprised that the tabs don't automatically switch pages in design mode. Is there any way around this problem?

TabStrip Control
Hi Guys! I am having some problems with the TabStrip control. I have created a tabstrip on the form and with the use of property pages I have made several tabs. So far, so good. The problem I can't seem to solve is that i can't acess tabs during design time, the control keeps showing me the first tab. So, how do I select the other ones, and how do i put on a tab other controls ( command buttons, textboxes... ), so that they will be shown only on a designated tab and not on all of them?

Using The TabStrip Control
Hello, everyone.
I have a problem with a TabStrip. First, I ask the user how many sections he wants. If the user says 5 sections, the program creates 5 labels and 5 combo boxes (in an array) and displays them. Then, the user selects one of three options from the combo boxes. Fine.
When the user clicks "Next", Form 2 appears and creates one frame for each combo box, but each frame created depends on the option selected; then it creates one tab in the tab strip for every combo box. So, now there are 5 tab strips. I want the user to click on the tabstrip and, depending on which "section" he selected, one of three frames appears.
Example:
I select 5 sections. Now I have 5 combo boxes. I select:
cbo1 = opt1
cbo2 = opt 3
cbo3 = opt 2
cbo4 = opt 3
cbo5 = opt 1

the form creates two fra1, two fra3 and one fra2, depending on the options selected. It also creates 5 tabs in TabStrip. I want that if the user clics on Tab1, fra1(0) appears. If the user clics on Tab2, fra3(0) appears, like this:

click Tab3, fra2(0) appears
click Tab4, fra3(1) appears
click Tab5, fra1(1) appears

How can I do that?

&lt;&gt;&lt;

Tabstrip Control
I'm having a hard time getting items such as the text box to sit on an individual tab of my tabstrip control. It just sits on top. When I change tabs the text box doesn't move. I've used the older tab control with no problems. How can I get it to work properly?

TabStrip Control
All,
Trying to control a TabStrip, but having no luck. I want to specify which tab has focus, based on a which radio button is selected on another form. Does anyone know how to do this? Thanks in advance.

Tabstrip Control
Hi all
1)I want to know that can we change the color of tabstrip control
2)At run time when I select any tab in the tabstrip control the selected tab font change into bold mode in my coding all the tab of tabstrip control changing into bold font

VB Code:
TabStrip1.Font.Bold=True

TabStrip Control
Hi Experts,

I'm Tring to do a Tabbed Browser Using TabStrib and it works well till now But,

How Can I Close The Selected Tab In TabStrip?

How To Use Tabstrip Control In Vb 6.0
hello,
i want to build an application in vb. In one of the forms i want to use tabstrip control. But it is not a container so we have to take any container like frame & controls on that frame. Can any body tell me if i want to take three tabs on which i have to take three different frames along with controls, how i shold display that three different frames on three different tabs?means how to bind that frame control with each individual tab? please give me the entire code. if it is possible at design time then tell me how to do that.

thank u
Ajay

TabStrip Control
Hello:

I am using the Microsoft TabStrip control in my VB6 project.

I want to use the BeforeClick event but I cannot get it to fire. Can anyone help with this problem?

Many thanks,

Stancamp

Tabstrip Control Help Please
hi guys,
i am using the tabstrip control... i know a lot of you do not like it..
but i am using it..
anyway, i have let's say 50 tabs on my tabstrip.., how do i hide certain ones ?

i have tried this:
TabStrip6.TabStop(15).Visible = False

to hide the 15th tab in the tabstrip., but it doesn't like it.


I cannot figure out what controls this.

thanks,
kevin

Tabstrip Control
On the tabstrip control how to I set what tab is selected?

TabStrip Control
how do I change what appears on each tab of the TabStrip?

Tabstrip Control
hi friends
how can i add common controls like labels ,textbox etc. to my tabstrip control
if i try to add a txtbox to my tabstrip ctrl and when i change my tabstrip 's width or hieght txtbox remain's in its original position
how can i solve this problem

TabStrip Control
Hi Everyone,

Has anyone ever used the TabStrip Control? I currently have three tabs that I am using. When I run the program the information for the third tab is automatically displayed. How can I get it to display the information on the first tab automatically by default? I would appreciate any help. Thank you.

TabStrip Control
Can anyone explain how you use this control? For example, I want a button on 2 different tabs. How do i place them on the tabs?

do i have to hide and show them?

Tabstrip Control
im designing my interface and i used the tabstrip control. I added another tab index, but i cant get to tab2. i need to put text boxes on tab 2. i can only access tab 1. hope you guys can help me

Tabstrip Control
How do I make a tab be selected through code??

Thanks.
Danny.

The TabStrip Control
Hey EveryBody:

I am debugging somebody's else program. He has 3 tabs in the tabstrip control. and there is a picture and combo boxes controls in the second tab and there is some regular controls in the third tab.

I want to know how to bring the second tab to the front while I am in the design mode.

Also How can I populate the combe box on the second tab with code, How Can I reference the controls on the second tab in the code.

Tabstrip Control
Hi,

I have a VB6 program I am building where I need to use the tabstrip control to display lots of information on one form. I tried Microsofts site but it did not make much sense as nees three tabs (or more) each displaying different objects such as textboxes etc.

Does anyone know how to use the tabstrip control and can simply explain how I can use it????

Cheers.

TabStrip Control
i don't know where to add the control in tabstrip control.
I mean , i 'm ok to add controls in Tab1 of tabstrip control.
i don't know where i can place controls for Tab2 & 3 & so on....
HELP ME
khine

TabStrip Control
Hi:

I have a tabstrip control where I will have 4 tabs -- how can I place
different items (textboxes, etc...) on each tab? Right now I placed my
first textbox on the first tab, but when I run it all the tabs show the
textbox. I appreciate any help on this. Thanks!

John Moses

Tabstrip Control In ASP.net
I have added Microsoft Tabstrip control, version 6.0
to my webform.I am able to add different tabpage captions.
But on clicking the particular caption it is not moving to that Particular tab.It is always remaing on first tabPage not moving to other tab pages.
How to make it work(simalr to tabcontrol of VB.net(winforms)?

TabStrip Control
Hi there,
This is a real simple problem which I've been trying to solve over the last three hours.
Can somebody please tell me how to edit different tabs in design mode. If I double click the tab I want to design, the code editor is displayed, I just can't find out where on earth I can switch to the other tab.

Help in this matter would be greatly appreciated!

Tabstrip Control
how do you disable a tab on the tabstrip control? The enable property of the tabstrip control enables/disables the tabstrip control itself and not the specified tab.

Thankyou very much

Tabstrip Control
Can anyone help me with the Tabstrip control from the componets in Windows common controls. I have placed one on a form and added an extra tab by right clicking and using the properties but I seem unable to actually get to any additionalk tabs, I can only place items (i.e text box etc) on the first tab. Each time I try clicking on the 2nd,3rd tab nothing happens. Can anyone help . I have tried this on my laptop as well just in case it was a bug on my machine but I am still unable to get to any of the other tabs. Any help greatly appreciated.
Thanks

Fran

Help With The Tabstrip Control
hi,
I've been having problems trying to get the Tabstrip control to do what I want it to.

I have three tabs set up on the tab control.
By default the first tab is selected when the program runs.
Now say I click on a different tab.
My problem is that I want to be able to prevent the user from selecting other tabs unless all conditions have been satisfied (the conditions are irrelevant to my problem).
I have been trying to use to code to re-select the original tab if condtions have not been satisfied, but I don't know how.
What code should I use to select and individual tab as if a user had clicked on it?

thanks

TabStrip Control?
Does anyone have code or link to user-drawn TabStrip control. I have seen vbaccelerator control but it flickers to much.

Please help!

Andrea Batina

Using Tabstrip Control...
I have been searching site for awhile, but am not having much luck. I have a form, and on it I put a tabstrip control. It has four tabs. What I would like is to have it so that depending on what tab is clicked have certain fileds not be visible. But when I try to change the onclick, I get the onclick procedure for the entire tabstrip, how can I change the onclick for each tab? Is this even possible, or do I need to do something else?

How To Use The Tabstrip Control
Pls can someone teach me how to use the tabstrip control? I need to know how to use i to overlap other controls effectively. If possible send some relevant code that can help me to use it. thanks in advance.

Tabstrip Control
Hello. How do I put controls on the second or third tab of a tabstrip control in design timeż
How do I determine which tab was selected during run timeż

Thanx

F. T. W.

Create New Tabs In A SSTab Control, Then Copy A Web Browser Control
How can I do this?

I want to create a new tab in a SSTab control, then put a new web browser (a copy of it) in it.

Also, how can I find out which tab is currently open in the SSTab control programmatically?

And how can I, with a web browser control, do something when the mouse hovers a link (e.g. get its destination)

Thanks,
-Matt

Container Tabstrip Control
Does anyone know about a control which look like a VB TabStrip but with more functionality, I mean I need a control with the characteristics of TabStrip that can be like a container too.

Colorizing The TabStrip Control
Hey, anyone know of any way to colorize the tabstrip control without subclassing the darn thing. Subclassing it somehow screws up my menus (which are subclassed)

Is there a control out there somewhere for this to replace the standard TabStrip Control??

Thanks

Copyright © 2005-08 www.BigResource.com, All rights reserved