I am having a problem of updating the main form button backcolor property from another class. I have attahced the code. Please tell how can i rectify this problem.
PopUp is another class, in which i want that when ToolStripDropDown closes it change the form button BackColor from Orange to WhiteSmoke.
public partial class PopUp : ToolStripDropDown
protected override void OnClosed(ToolStripDropDownClosedEventArgs e)
Form1 f1 = new Form1();
// f1._pushed = false;
f1.Controls["button1"].BackColor = Color.WhiteSmoke;
It seems that this line works, i checked it using MessageBox it changes the backcolor property but it does not updated to the form displayed on the screen.
Can anyone help me
View Complete Post