How to change combobox background color (not just the drop down list part)

后端 未结 6 1536
走了就别回头了
走了就别回头了 2020-12-15 17:44

In a winform application running on windows 7 I want the change the background color of a combobox to highlight it. The comboxbox has a DropDownStyle of DropDownList.

<
6条回答
  •  余生分开走
    2020-12-15 18:06

    Since you lose the 3D effects anyway with Igby Largeman's solution you're better off changing the FlatStyle property to Flat. The background color seems to be obeyed even in Windows 7 that way, and without re-implementing any low-level events.

    I would consider this a bug on Microsoft's part...

提交回复
热议问题