Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...I have never been to any technical site that shows concern just to anybody with problems...I look forward to also share in the future..."

Geography

Where in the world do Tek-Tips members come from?
puforee (TechnicalUser)
2 May 12 15:42
I am using a TAB control on my form with 5 TABS.  From the properties, I can change the Font type, size, italic, and underline.

However, I would like to change the Font color for each of the little tabs.

I looked in FAQ's and did not see anything that covered this...I might have missed something by not asking the question correctly.

Has anyone found a way to change the color of the tab text?  I would want to do this for each tab so they would be different colors.  This would make the tabs stand out better.

Or are there other TAB Controls out there that I might be able to use?

Thanks,
MajP (TechnicalUser)
2 May 12 16:02
http://www.4shared.com/office/9gUmtPZg/MajP_TabControlColor.html
If you want to modify individual tabs, you end up by "faking" it because there is no properties or way to do it in code.

Most examples I have seen use frames, but it requires a very labor intensive and non flexible method.  I like to use a standard tab control and set it's tab control style to "none".  That means the control has no visible tabs.  Then replace those with Labels.  There are a few tricks to make this look good if you are formatting the whole page.  In your case it would be simply a matter of putting N labels as a substitute for the tab.  

The example shows how you can fake coloring a tab page and formatting the selected tab.
puforee (TechnicalUser)
2 May 12 16:45
Thank you for your answer.  So MS flunks again.  Ho Hum.
MajP (TechnicalUser)
2 May 12 17:27
You may want to google this and you should find many tricks to get this effect.  There are several approaches. I like to stick with using a real tab control and "hiding" the tabs. Then I build fake tabs out of text boxes or labels.  Then I fake making the tab appear selected and use the text boxes/labels to control the selected page. This requires less labor and code than other approaches.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close