How do I change the form's controls background color?

121 Views Asked by At

So how do I change it? For example my form looks like this: enter image description here

But I want the controls to look like this: enter image description here

1

There are 1 best solutions below

0
Rich N On BEST ANSWER

This is a bug in the library. There is a workaround:

  • Add a MetroStyleManager to your form by dragging it onto the form from the Toolbox in Visual Studio.
  • The metroStyleManager1 icon gets displayed below the form as shown in the screenshot below, and can be clicked to bring up its properties. Do this.
  • Under the Owner property for the MetroStyleManager click the dropdown and select the form name, which is Form1 in the example below.
  • Set the Style and Theme properties you want in the MetroStyleManager properties. This overrides any setting on the form itself. It may be worth setting Style and Theme on the form to the same values as well so it shows the correct colors in the designer.
  • Run the project, the buttons should have the correct colors.

enter image description here