TabPage & TabControl BackColor

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi, all

it is a stupid question.

I add a TabPage control to TabControl Control,
then add TabControl to Panel
after that: add Panel to Form

Well, I want to Change the TabPage control and TabControl BackColor.

I set: tPage.BackColor = Color.Red;
tControl.BackColor = Color.Red;
But, it seems does not work.

Why?
how to do it? should I customer draw ?

My env: VS.NET 2003 for PocketPC 2003

Thanks
 
I don't believe it is supported. Not everything that inherits from control
( i.e. tabControl) supports all the methods from control. You probably need
to override the OnPaint and custom draw.
 
Back
Top