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

Background

3 Answers 60 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 17 Jan 2008, 10:59 PM
Hi,

How can I set my forms background color to be the same as that from a RadTabStrip?

Thanks for your help,
Michael

3 Answers, 1 is accepted

Sort by
0
Brad
Top achievements
Rank 2
answered on 17 Jan 2008, 11:42 PM
Hi Michael,

I'm assuming you want the background color of the form to match that of your radTabStrip backcolor?

Is so, add a page Load event that looks something like this:

private void Form1_Load(object sender, EventArgs e) 
    this.BackColor = radTabStrip1.BackColor; 

Regards,
Brad
0
Michael
Top achievements
Rank 1
answered on 18 Jan 2008, 12:14 AM
Thanks but what if i don't have a tabstrip on the form?
0
Brad
Top achievements
Rank 2
answered on 18 Jan 2008, 03:25 AM
Hi,

Add a radTabStrip to your page, set the theme you want then look it up in the properties.  Once you know what the value is all you have to do is manually assign it where appropriate.

To assign the value based on the default theme:

this.BackColor = Color.FromArgb(191, 219, 254);

Regards,
Brad

Tags
General Discussions
Asked by
Michael
Top achievements
Rank 1
Answers by
Brad
Top achievements
Rank 2
Michael
Top achievements
Rank 1
Share this question
or