Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Buttons, RadioButton, CheckBox, etc > RadCheckBox

Not answered RadCheckBox

Feed from this thread
  • Chet Musialowski avatar

    Posted on Sep 9, 2011 (permalink)

    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

    Reply

  • Stefan Stefan admin's avatar

    Posted on Sep 14, 2011 (permalink)

    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 >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Buttons, RadioButton, CheckBox, etc > RadCheckBox