As to the comments to to question...
Maciej Los wrote:
How many windows/forms contains your application? Only one or more?
Opalie wrote:
many: a main Form (Form1) + child forms to have inside of it (here, Form_Setting)
If you would like to update
BackColor
for each loaded form, you need to loop through the collection of opened forms:
foreach(Form f in Application.OpenForms)
f.BackColor = aVariableWhichHoldsColor;
As to the
aVariableWhichHoldsColor
...
I'd suggest to define this variable in
Program.cs
:
public static Color MyThemeColor = Color.FromArgb(173, 112, 133);
or create static class:
public static class MyHelper
{
public static Color MyThemeColor = Color.FromArgb(173, 112, 133);
}
Finally, in
Form_Settings
class you have to call method responsible for changing
BackColor
for each opened form:
MyHelper.MyThemeColor = buttonRGB1.BackColor;
foreach(Form f in Application.OpenForms)
f.BackColor = MyHelper.MyThemeColor;
Without knowing more details, it's hard to tell what you have to do to resolve your issue.
Good luck!