This is a migrated thread and some comments may be shown as answers.

BackColor being changed behind my back!

1 Answer 73 Views
Tabstrip (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
DukeVideo
Top achievements
Rank 1
DukeVideo asked on 30 Oct 2007, 10:04 AM
Hi,

I have set the BackColor of the RadTabStrip to (228, 238, 250), and it works in the Designer. This even produces the code in InitialiseComponent():

this.radTabStrip.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(228)))), ((int)(((byte)(238)))), ((int)(((byte)(250)))));

Yet, when I Build and Run, the colour changes in the designer and at runtime to ControlLightLight.

Any ideas?

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 01 Nov 2007, 12:48 PM
Hello DukeVideo,

Thank you for this question.

This happens because RadTabStrip takes into account the theme applied to it until the initialization process of the components finishes. When you change the BackColor property from the designer, as you have noticed, a line for this change is placed into the InitializeComponent(), and since this line is not a part from the theme, it does not reflect on the look of the control at run-time.

In general, there are two ways to change the BackColor of RadTabStrip.The first one is to use our Visual Style Builder to make a theme. The second one is to put the code line for the BackColor property after the InitializeComponent() in the Form constructor or in the Form_Load event handler.

If you have any questions, do not hesitate to contact us.

Greetings,
Nikolay
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Tabstrip (obsolete as of Q2 2010)
Asked by
DukeVideo
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or