I would like to change a forms background from another form.
I have form1 and form2 in my application, on form2 i have a combobox with the options.
Whan i select a color in the combobox, i want form1's backcolor to change and not form2's.
I used this code:
Form1 form = new Form1();
form.BackColor = Properties.Settings1.Default.Black;
But it doesn't work?
The same thing happens when i try to change form1's opicity!
Loading
Scott LyslePosted Nov 11, 2011, 12:34 AM
public override Color BackColor
{
get
{
return base.BackColor;
}
set
{
base.BackColor = value;
}
}
private void button1_Click(object sender, EventArgs e)
{
Form2 f = new Form2();
f.Show();
f.BackColor = Color.Black;
}
VulpesPosted Nov 10, 2011, 6:16 PM