BackColor change for Combobox, DateTimePicker, MaskedEditBox

2 posts, 0 answers
  1. Victoria F
    Victoria F avatar
    46 posts
    Member since:
    May 2010

    Posted 05 Jan 2011 Link to this post

    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.
  2. Victoria F
    Victoria F avatar
    46 posts
    Member since:
    May 2010

    Posted 05 Jan 2011 Link to this post

    Sorry , never mind I found the answer :

    radComboBox_1.ComboBoxElement.TextBoxElement.TextBoxItem.BackColor = Color.Yellow;
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top