How to override background color for WinForm collapse and enlarge buttons

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

+1


source to share


4 answers


You cannot do this easily.

Best option: http://geekswithblogs.net/kobush/articles/CustomBorderForms3.aspx



You can find more answers here: Custom Headers / Chrome in WinForms Application

+1


source


Not skipping your own NC_PAINT, which is very bad practice in and of itself.



You never know when a user will be using a new visual style that they have never heard before. Your app will render the old ugly buttons over the existing style and everything will collide.

+1


source


The short version, out of the box, is not what I know.

The longer version is that you can create a borderless form and then create your own buttons on it [Collapse | restore] / maximize / close. You will need to draw your own form title bar and basically take over all the magic of moving around the screen and so on, but that's not impossible.

Consider this article from Maverick Code as a starting point.

0


source


I tried something like this once. It took too long, plus there are a lot of third party controls. I am using the following Krypton Toolkit , its large and the toolkit is free.

0


source







All Articles