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

changing color of text

1 Answer 53 Views
ColorPicker
This is a migrated thread and some comments may be shown as answers.
MeganF
Top achievements
Rank 1
MeganF asked on 13 Sep 2011, 10:13 AM
Hi all,

have a simple query! i have a control in the .cs file which is a text and i want to change colour of this however its not picking up foreground or background controls?

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 14 Oct 2011, 06:23 AM
Hello Megan,

You can hook OnColorChanged event and can set the color.
C#:
protected void ColorPicker1_Click(object sender, EventArgs e)
   {
       Label1.BackColor = RadColorPicker1.SelectedColor;
       Button1.ForeColor = RadColorPicker1.SelectedColor;
       Button1.BackColor = RadColorPicker1.SelectedColor;
   }

Thanks,
Shinu.
Tags
ColorPicker
Asked by
MeganF
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or