Jump to content

Color in ComboBox doesn't work

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
Crane

Crane

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 398 posts
I use this code:
combobox1.BackColor = Colors.White;

but when the box is disabled it doesn't work.

#2
Lop

Lop

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,172 posts
This is default behavior Crane. If you want a different backcolor when the combo is disabled you will probably have to write a new combobox control or at least override some of the default behavior of the current combobox.

#3
Void

Void

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 411 posts

Lop said:

This is default behavior Crane. If you want a different backcolor when the combo is disabled you will probably have to write a new combobox control or at least override some of the default behavior of the current combobox.

Right. You would have to make your own combo class to change the background color when disable.
Void

#4
Crane

Crane

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 398 posts
Thanks, that is what I figured