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

Tab Control on a Form

Status
Not open for further replies.

CoolFactor

Technical User
Dec 14, 2006
110
US
I created a Tab Control on a form to allow tab browsing. I want to centralize the tabs instead of them being aligned left.
 
You may try something like this in the Load event procedure of the form:
With Me![Tab Control name]
For i = 0 To .Pages.Count - 1
.Pages(i).Width = Int(.Width / .Pages.Count)
Next
End With

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
I don't think you can do what you are asking with the tab control.

You can modify how the tabs display in the tab control properties, format. Use Style and the two size properties.

Not real elegant but functional.

Larry De Laruelle

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top