This is my issue:
I have 3 forms:
- Form fParent
- Form fChild (is child of fParent)
- Form OpenForm (contains a button A)
I want that When I click button A on fChild, it shows OpenForm , hides fParent and fChild.
How can I do that?
//code on fChild
OpenForm frm = new OpenForm();
this.Hide();
frm.Show()
Please help me.
Manoj BhoirPosted Apr 14, 2015, 11:39 AM
If you are writting above code on fChild to open OpenForm.
Then see this.
OpenForm frm = new OpenForm();
this.Hide();
frm.Show();
Try this.ParentForm.Hide(); instead of this.Hide();
You are writting this.Hide(); which only hide child form.