Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > ComboBox and ListBox (obsolete as of Q2 2010) > BackColor change for Combobox, DateTimePicker, MaskedEditBox

Not answered BackColor change for Combobox, DateTimePicker, MaskedEditBox

Feed from this thread
  • Victoria F avatar

    Posted on Jan 5, 2011 (permalink)

    What I'm trying to do is depend on my search method I want to highlight some fields in my winform to make them required.
    Some fields are RadComboBoxes, some of them are DateTimePickers, some MaskedEditBoxes.

    On Click event of my search method I'm trying to set a BackColor for fields that are required to yellow.
    radComboBox_1.BackColor = Color.Yellow;
    EdMsk_A3.BackColor = Color.Yellow;
    As soon as user fills out the required field it suppose to change color back to initial White background.

    The problem is that the following code for the background change does not work.. BackColor of the combobox  never changed..
    Thanks,
    Victoria.

    Reply

  • Victoria F avatar

    Posted on Jan 5, 2011 (permalink)

    Sorry , never mind I found the answer :

    radComboBox_1.ComboBoxElement.TextBoxElement.TextBoxItem.BackColor = Color.Yellow;

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > ComboBox and ListBox (obsolete as of Q2 2010) > BackColor change for Combobox, DateTimePicker, MaskedEditBox
Related resources for "BackColor change for Combobox, DateTimePicker, MaskedEditBox"

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]