Answer the question
In order to leave comments, you need to log in
How to change MetroFramework style color for all forms?
In the main form, I added some settings to change the appearance of the form.
How to update all child forms? those. pass data to other forms.
public main()
{
this.InitializeComponent();
this.StyleManager = metroStyleManager;
}
private void mbTheme_SelectedIndexChanged(object sender, EventArgs e)
{
switch (mbTheme.SelectedIndex)
{
case 0:
metroStyleManager.Theme = MetroFramework.MetroThemeStyle.Dark;
break;
case 1:
metroStyleManager.Theme = MetroFramework.MetroThemeStyle.Light;
break;
}
}
private void mbColor_SelectedIndexChanged(object sender, EventArgs e)
{
metroStyleManager.Style = (MetroFramework.MetroColorStyle)Convert.ToUInt32(mbColor.SelectedIndex);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question