Hello!

I'm creating an app where you can open Settings form and choose the background color, etc.
This is how it looks like when one clicks on the color settings button:

ColorDialog dlg = new ColorDialog();
dlg.Color = Properties.Settings.Default.bgdColor;

if (dlg.ShowDialog() == DialogResult.OK)
{
     Properties.Settings.Default.bgdColor = dlg.Color;
     Properties.Settings.Default.Save();
     bgdColorLBL.BackColor = dlg.Color;
}

What am I supposed to do to apply those settings on every form my application contains?

When you create the form ( = new MyForm) and before you show it, you'll need to set the BackColor property.

I'd create a method that sets the properties and just pass the form object to it.

I'll give it a go in a day. Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.