Tab Control Color

Q

quixote

I have a form with a Tab control and under a certain
condition I would like to either change the color of a
Page or change the color of the text(even just make it
bold would be fine). I can't seem to find the properties
or the proper syntax to do this any ideas?

This is essentially the login I want:

If condition Then

Me.myTab.MyPage(1).BGColor = vbRed
or

Me.myTab.MyPage.Text = vbRed or Bold
End if


Thanks
 
M

MikeC

The tab control that comes with Access offers no background color property
for the individual tabs.
However, alternative methods are possible. The sample database/code
provided at the below web page should get you started.

http://www.lebans.com/tabcolors.htm
 
F

Frank Schlüter

Hello,
I tried to change the TabColor with your function, Steve. But, the MS
Tab-Control only accepts 256Colors-Bitmaps. Try the color 255,253,242 (rgb).
The TabStrip is displayed in white (changing the color of the rectangle of
course is no problem). But not your function failed, the TaBStrip is the
problem. Try to set an 24Bit-image with the standard properties-dialog. The
same effect, the shown image is not the original. I hope you understand my
problem. What can we do? A letter to MS? ;-)

By Frank
 
S

Stephen Lebans

This limitation is documented in the commented source code behind the
sample Form. There is no workaround that I could find.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 

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