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

change size via code

Status
Not open for further replies.

Taxidriver

Programmer
Jan 15, 2002
79
0
0
IT
how can I change the size of the words written in a sspanel via code? .font.size = 10 doesn't work.
 
Here we go:

Code:
Private Sub Form_Load()
    SSTab1.Tab = 1 ' you set the current tab
    SSTab1.Font.Size = 22 ' you set the font size (it affects 
                           'ALL tabs, not just the current one)
End Sub

Hope I've been helpful,
Bogdan Muresan.
 
Here we go:
Code:
Private Sub Form_Load()
    SSTab1.Tab = 1 ' set the current tab
    SSTab1.Font.Size = 10 ' set the font size (for ALL tabs, not just for the current one !!!)
End Sub

It works just fine on my machine.

Hope I've been helpful,
Bogdan Muresan.
 
Thank you! It worked, I use a for cycle.
Can you tell me also the syntax to choose the type of font?
thanks
 
Shure:

Code:
SSTab1.Font.Name = "Arial"

Question: Why do you use a for cycle?

I told you it affects ALL the tabs.

Hope I've been helpful,
Bogdan Muresan.
 
Thanks. Because I already had a cycle where I have different labels for every tab (data coming from a database). Anyway, I tried with tab as well but it gives me an error, it works with .tabindex instead.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top