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?
Loading

Vijay YadavPosted Mar 25, 2011, 2:58 AM
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();
}
:)