Hi, I have an MDI form (frmPrincipal) where I open an MDI Children form (frmListerateClients).
Within this mdi children when closing the form I launch a form (frmOpciones) that allows you to make a couple of quick procedures that you can either press one of them or cancel the form.
-
If the frmOptions is canceled we will remain in modal the frmListadoClientes
-
If one of the frmOptions buttons is activated, a 4th form is opened (frmTPV), so I try to hide the third form (frmOpciones) and show this last open form in a modal form, for this I use this code
Code to open the Options form
frmOpciones frm = new frmOpciones (param1 , param2);
frm.ShowDialog();
From the form frmOpciones (3rd form) I open the corresponding option to open the 4th form that I launch with this code
private void btnStock_Click(object sender, EventArgs e)
{
this.Close();
Form f2 = new frmTPV(param1 , param2 , param3);
f2.MdiParent = this.ParentForm;
f2.ShowDialog();
}
Here what I try to do is that before launching this 4th form close the third but I do not get it, I have also tried this.Hide () without success.
The problem I have is how to make this form not shown or hidden.
Thanks