Tabpage defaulting to BackColor: Transparent

  • Thread starter Thread starter SurturZ
  • Start date Start date
S

SurturZ

Tab control colours have been erratic for as long as I can remember. Since
VB4, I think.

I'm not sure why the problem has persisted into .NET. Maybe they just ported
the control.

I think setting the colours at run-time is an adequate work-around.
 
Tab control colours have been erratic for as long as I can remember. Since
VB4, I think.

I'm not sure why the problem has persisted into .NET. Maybe they just ported
the control.

I think setting the colours at run-time is an adequate work-around.
 
Using VS2008: I can set the BackColor of all tabpages within a TabControl to
Color.Control manually. However, the next time that I change a control on
the tabpage, all of the tabpages within that tabcontrol will have their
BackColor automatically changed to Transparent.

I think this behavior started with VS2005, not sure. Is this normal?
Shouldn't the BackColor of any tabpage default to Control?

Thanks in advance.
Dean Slindee
 
This behaviour started in VS2005 when a new property was added so that
tabpages could use the texture specified in Visual Styles.

Set the tabpages UseVisualStyleBackColor to false if you do not want a
transparent tabpage. TabPage.BackColor will then default to
SystemColors.Control.
 
This behaviour started in VS2005 when a new property was added so that
tabpages could use the texture specified in Visual Styles.

Set the tabpages UseVisualStyleBackColor to false if you do not want a
transparent tabpage. TabPage.BackColor will then default to
SystemColors.Control.
 
Back
Top