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 MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Design Tabstrip control?

Status
Not open for further replies.

jgoodman00

Programmer
Jan 23, 2001
1,510
I am trying to create an options dialog, with a number of tabs <like Microsoft Office>.

I can create the first tab with no trouble, & place all of the relevant controls on it.

How do I go onto the next tab & place controls there though? James Goodman MCP
 
Try using the Microsoft Tabbed Dialog Control 6.0 (add as a component). It is a little easier to use. Rob
 
Just create another container frame.
Best is when both frames are a con´trol array (Frame1.Index =1 and Frame1.Index = 2)

Then, set the visible properties to False.

In the Tab1_Click event just make the Frame visible whose index corresponds to the Tab1 index, and hide the others:

Private Sub TAB1_Click()
Dim fra As Frame
For fra in Frame1
fra.Visible = False
next fra

Frame1(TAB.SelectedItem.Index).Visible = True
End Sub

On the Form Load event you may want to call this event as well, in order to initiate it.
anlageTAB.Tabs(1).Selected=True
TAB1_Click
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top