Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Controling a tabstrip with an array!

Status
Not open for further replies.

DaTommyboY

Programmer
Feb 10, 2004
40
NL
Hi everybody,

I like to use tabstrip to use the fact that all my layouts are the same. Can anybody explane me how I can control the captions, ore something else, of the tabs.
Code:
Form1.Controls("TabBewerkingen.tabs" & "(" & Trim(Str(I)) & ")").Caption = BewerkingNaam(DoorlopenAantalBewerkingen)
It should by something like above!! With I as the index of the tab.
BewerkingNaam(DoorlopenAantalBewerkingen) is my caption, but can by anything you like.

Thanks
Tom
 
Hi DaTommyboy,

I like to use the "Microsoft tabbed Dialog Control" (SSTab) -in my opinion it is better than the tabstrip.

To use the control, choose Project -> Components and Browse to "tabctl32.ocx". This will add the component to you project, now you can add an SSTab control to your form.

Once you have done this, try this code:
Code:
Private Sub Form_Load()
    SSTab1.Tab = 0
    SSTab1.Caption = "Hello"
End Sub

It is very easy to work with the SSTab control and to change captions and such.

Good luck,
Ryan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top