Tab Control Backcolor?

  • Thread starter Thread starter Saxman
  • Start date Start date
S

Saxman

I have created a tab control on a form which is linked to a table and
appears to be functioning OK. However, I am stumped as to how one can
alter the bgcolor of the tab control. If I bring up the tab control
properties, the property bgcolor doesn't appear, even under the 'all'
tab properties.

I can change the bgcolor of the 'detail' section, but that is behind the
tab control.

Maybe I ought to start again, as I did cut/paste my fields from the form
onto the tab control?

TIA
 
Saxman said:
I have created a tab control on a form which is linked to a table and
appears to be functioning OK. However, I am stumped as to how one can
alter the bgcolor of the tab control. If I bring up the tab control
properties, the property bgcolor doesn't appear, even under the 'all'
tab properties.

I can change the bgcolor of the 'detail' section, but that is behind
the tab control.

Maybe I ought to start again, as I did cut/paste my fields from the
form onto the tab control?

TIA

TabConbtrols do not support having different background colors natively.
Stephen Lebans has a utility on his website that produces the same effect
though.
 
Douglas said:
See whether what Stephen Lebans has at http://www.lebans.com/tabcolors.htm
is what you're looking for.

Thanks for the link, but I cannot get it to work. Not very user
friendly. I double click on the file, it asks me whether I want to
convert the database. I agreed yes; it asks me for a file name; I open
up the new database and all I see are tab tables in different formats.
I copy/pasted a tab table into my database, but it makes no difference.
 
Not surprising that it's asking you whether you want to convert: it's in
Access 97, and if you're using Access 2000 or newer, Access is going to ask
that. That has nothing to do with the sample database itself.

You can't just copy a tab into your application: you need all of the code
from the sample database. (It's a fairly involved process to change the tab
colour).

While I'll grant that Stephen doesn't provide the clearest explanations of
what he's doing, his code is usually exquisite, and this is no exception.
 
Back
Top