DropDownStyle set to DropDownList looks disabled, but no?

It seems that the Windows 10 Combobox style looks disabled when I change it DropDownStyleto DropDownList.

Win10 ComboBox

On the left is Combobox in front of any user interaction. Right - when the user clicks on it to open it.

Now I don’t like changing the default design to what the user cannot expect, but for me the default design makes it disabled and can confuse the user.

I tried to set the control BackColorto white, but there were no changes.

I need a behavior DropDownListwhere the user can only select the available options and not write in the new option, but appearance DropDown(plain white background).

+4
source share
1 answer

You can change the property FlatStyleand check which style is more desirable.

Style seems to be the style Flatyou are looking for. (based on your comment)

  • Flat . The control looks flat.

  • Popup window . The control appears flat until the mouse pointer moves over it, and at that moment it looks three-dimensional.

  • Standard . The control looks three-dimensional.
  • System . The appearance of the control is determined by the user's operating system.

DrawMode , DrawItem MeasureItem.

+2

Source: https://habr.com/ru/post/1619062/


All Articles