I'm working on a windows forms app. At the moment of calling a user control if it is open that you do not call it again. I want to do something like this:
public static Boolean OpenForm(Form Formulario)
{
Form F = Application.OpenForms[Formulario.Name];
if (F == null) return false;
if (F.WindowState == FormWindowState.Minimized)
F.WindowState = FormWindowState.Normal;
F.Focus();
return true;
}