Discussion:
Changing colour of vb6 tab control
(too old to reply)
Mojo
2009-09-02 21:54:15 UTC
Permalink
Hi All

I've used the Microsoft Tabbed Dialog control on a test project and although
it's great and being able to position controls on each tab in design time
you don't seem to be able to change the actual controls colour.

If I change the background colour it only changes the tiny corners in the
top left and right of the tab control not the actual tab background.

This all means that I have to change the overall look of my app to the usual
robot style grey bg of old apps when I really want the tabs to haev a white
background.

Is it possible to change the control's BG from boring grey to white??

Thanks
Mike Williams
2009-09-03 08:19:39 UTC
Permalink
Post by Mojo
I've used the Microsoft Tabbed Dialog control on a test
project and although it's great and being able to position
controls on each tab in design time you don't seem to be
able to change the actual controls colour.
Have a look at this:

http://www.xtremevbtalk.com/showpost.php?p=1011724

Mike
Dee Earley
2009-09-28 14:35:03 UTC
Permalink
Post by Mojo
Hi All
I've used the Microsoft Tabbed Dialog control on a test project and although
it's great and being able to position controls on each tab in design time
you don't seem to be able to change the actual controls colour.
If I change the background colour it only changes the tiny corners in the
top left and right of the tab control not the actual tab background.
This all means that I have to change the overall look of my app to the usual
robot style grey bg of old apps when I really want the tabs to haev a white
background.
Is it possible to change the control's BG from boring grey to white??
Doesn't directly answer your question, but gives you a better overall
solution.
http://hashvb.earlsoft.co.uk/Tabbed_dialogs
--
Dee Earley (***@icode.co.uk)
i-Catcher Development Team

iCode Systems
Gutless Umbrella Carrying Sissy
2009-09-29 01:31:38 UTC
Permalink
Post by Dee Earley
Post by Mojo
Hi All
I've used the Microsoft Tabbed Dialog control on a test project
and although it's great and being able to position controls on
each tab in design time you don't seem to be able to change the
actual controls colour.
If I change the background colour it only changes the tiny
corners in the top left and right of the tab control not the
actual tab background.
This all means that I have to change the overall look of my app
to the usual robot style grey bg of old apps when I really want
the tabs to haev a white background.
Is it possible to change the control's BG from boring grey to
white??
Doesn't directly answer your question, but gives you a better
overall solution.
http://hashvb.earlsoft.co.uk/Tabbed_dialogs
IIRC, the only way to change the background color of the tabs is
through the Windows API.

http://www.rhinocerus.net/forum/lang-basic-visual-misc/581337-
changing-color-sstab-component.html

(or http://tinyurl.com/ybpx3ox )

has some links, if you're feeling adventurous (or know API stuff
already).

http://www.vbforums.com/showpost.php?p=1841998&postcount=2 has a
sample you can download and poke through.

VBAccelerator has some (free) alternatives to the SSTab control
that are more flexible:

http://www.vbaccelerator.com/home/VB/Code/Controls/Tab_Controls/ind
ex.asp

http://tinyurl.com/y9xanxl
--
Terry Austin

Terry Austin: like the polio vaccine, only with more asshole. -
David Bilek

Yeah, I had Terry confused with Hannibal Lecter. - Mike Schilling

Jesus forgives sinners, not criminals.
Loading...