1

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

4 Answers 4

1

You cannot do it easily.

The best option is: http://geekswithblogs.net/kobush/articles/CustomBorderForms3.aspx

You can find more answers here: https://stackoverflow.com/questions/42460/custom-titlebarschrome-in-a-winforms-app

1

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.

0

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.

0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.