changing color of text

2 posts, 0 answers
  1. MeganF
    MeganF avatar
    5 posts
    Member since:
    Apr 2009

    Posted 13 Sep 2011 Link to this post

    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?

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 14 Oct 2011 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top