Tab Control "Back Color"

A

Anthony

Why can't I change the "Back Color" of my tab control to something else?

Another thing: If I select "Transparent" for "BackStyle" property, it does
nothing. It leaves the gray border around the tab control.

What do I do to get rid of the gray border?
 
M

Marshall Barton

Anthony said:
Why can't I change the "Back Color" of my tab control to something else?

Another thing: If I select "Transparent" for "BackStyle" property, it does
nothing. It leaves the gray border around the tab control.


AFAIK, you can't do much of anything about the tab bar's
color. The border is not gray, it is the raised special
effect that comes with all the windows general controls, a
la command buttons.

You can make the back style transparent, but if that's all
you do, you will just see the form's back color. To make it
look like the tab control's back color, add a rectangle
control to the form and size it the same as the tab control.
Then position it behind the tab control.

There are a few other things that can be done using Windows
API functions. Search www.lebans.com for a tab coloring
procedure.
 
A

Al Campagna

Anthony,
The Tab Back Style just shows the background color that's used on the Main form section
the Tab Control is placed on.
To "simulate" changing Tab Back colors, set the Tab Back Style to Normal, place a large
rectangle just within the size of your tab page on the tab you select.
Set that rectangle Back color to whatever you'd like, and Send it to Back. Now you can
lay fields on top of the rectangle.

Tip: It's usually best to set up all your controls on the tab ahead of time, then add
the colored rectangle and send to back.
--
hth
Al Campagna . Candia Computer Consulting . Candia, NH USA
Microsoft Access MVP
http://home.comcast.net/~cccsolutions

"Find a job that you love, and you'll never work a day in your life."
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top