Home Forums WinForms controls Other WinForms controls Changing the BackColor for a ComboBox in the toolbar

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #18298 |

    Hi,
    Is there any way to change the BackColor property for ComboBox from the toolbar? I couldn’t find the property in the properties window.

    thanx

    Imported from legacy forums. Posted by kozu (had 3878 views)

    User (Old forums)
    Member
    Post count: 23064

    For all themes, you can use SystemColors.Window, or SystemColors.Control if the Enable property is set to false.

    Imported from legacy forums. Posted by André (had 343 views)

    User (Old forums)
    Member
    Post count: 23064

    Hi Andre,
    I’m not sure I understand what you mean.
    Here’s what I’m trying to do: I have a SmartToolBar with some buttons and a ComboBoxTool on it. I need to change the ComboBoxTool’s color (the BackColor property) to yellow. Is there any way that I can do that?

    thanx

    Imported from legacy forums. Posted by kozu (had 375 views)

    User (Old forums)
    Member
    Post count: 23064

    You will not be able to change the color of individual ComboBox. You need to do this at the theme level, so all ComboBox will reflect this change.

    Here is more info from the MSDN library :

    http://msdn2.microsoft.com/en-us/library/system.drawing.systemcolors.window.aspx

    Imported from legacy forums. Posted by André (had 339 views)

    User (Old forums)
    Member
    Post count: 23064

    Thanks

    Imported from legacy forums. Posted by kozu (had 5017 views)

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.