Hi,
I want a suggestion, I have a form which is not MDI but it act as a main form of the applciation and there is a button, and on click of that button get disable and other form get opened and all i want to do is on close of 2nd form, the button on the first should get enabled. Any idea?
Close of 2nd form, the button on the first should get enabled.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


Vijay YadavRank #1,637 · 943 reputationPosted Mar 24, 2011, 10:58 PM EDT
The Problem got resolved.
I have used this:-
In Form1.cs:
private void button1_Click(object sender, EventArgs e)
{
Form2 f2 = new Form2();
this.AddOwnedForm(f2);
f2.Show();
}
In Form2.cs
private void button2_Click(object sender, EventArgs e)
{
this.Owner.Controls["BtnAdvocaat"].Enabled = true;
this.close();
}
:)