RadCheckBox

2 posts, 0 answers
  1. Chet Musialowski
    Chet Musialowski avatar
    19 posts
    Member since:
    Nov 2009

    Posted 09 Sep 2011 Link to this post

    Hello,

    I've seen a number of posts that explain how to highlight buttons, combos, etc using the Enter and Leave events.

    I would like to do the same thing with the RadCheckBox.  I've tried changing the BackColor of the ButtonElement, TextElement, etc but with no luck.

    How do I accomplish this ?

    Thanks,
    Chet
  2. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 14 Sep 2011 Link to this post

    Hello Chet,

    Thank you for writing.

    Please consider the following code snippet, which demonstrates how to achieve the desired appearance:
    private void radCheckBox1_LostFocus(object sender, EventArgs e)
    {
        radCheckBox1.RootElement.ResetValue(FillPrimitive.BackColorProperty, Telerik.WinControls.ValueResetFlags.Local);
    }
     
    private void radCheckBox1_GotFocus(object sender, EventArgs e)
    {
        radCheckBox1.RootElement.BackColor = Color.Red;
    }

    I hope that you find this information helpful. If there is anything else I can assist you with, do not hesitate to contact us.

    Regards,
    Stefan
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top