How to override background color for WinForm minimize and maximize buttons

Is it possible to override the background color of the minimize and maximized buttons in WinForms?


You cannot do it easily.

The best option is:

You can find more answers here: Custom titlebars/chrome in a WinForms app

Not without writting your own NC_PAINT which is very bad practice by itself.

You never know when the user will use a new visual style never heard before. Your application will display the old ugly buttons over the existing style and everything will clash.

The short version is, out of the box, not that I'm aware of.

The longer version is that there's nothing stopping you from creating a borderless form, then creating your own [minimize|restore]/maximize/close buttons on it. You'll have to draw your own form title bar, and basically take on all the magic of moving onscreen and such, but it's not impossible.

Consider this article from Code Maverick as a starting point.

i once tried to something similar. It took too much time, plus there are plenty of third party controls out there. I use the following Krypton Toolkit, its great and the toolkit is free.

Need Your Help

Fontello icon font shows strange characters until cache is cleared when var_dump is output before doctype

css encoding character-encoding embedded-fonts icon-fonts

We use fontello icons across a site and 90% of the time they display correctly in all browsers. For some reason when we var_dump (PHP) code before the html doctype they all break into strange chara...

Content behind div that slides up with jquery

jquery slideup

I am trying to figure out how to have a div slide up and have content display behind the div that slides. The effect will slide up a div with a background image of a garage, and when a button is cl...