private void OpenForm<T>() where T : Form, new()
{
T frm = (T)new List<Form>(this.MdiChildren).Find(f => f is T) ?? new T() { MdiParent = this };
frm.Show();
frm.Focus();
}
and usage
OpenForm<NewForm>();
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.