TabPage & TabControl BackColor

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
 
R

Robert Lalouche

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.
 

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