FormLoad(typeof( [ Form 이름 - frmMain ] )); 
private void FormLoad(Type frm)
{
    try
    {
        foreach (Form item in this.MdiChildren)             
//돌아가고 있는 Form이 있나 확인 후 있다면 그 Form에 Focus를 마춰주고 
//함수 종료 없다면 새로운 Form 띄워주기
        {
            if (frm.Name == item.Name)
            {
                item.Focus();
                return;
            }
        }
        Form NewFrom = (Form)Activator.CreateInstance(frm);
        NewFrom.MdiParent = this;
        //NewFrom.StartPosition = FormStartPosition.CenterParent;
        //NewFrom.WindowState = FormWindowState.Maximized;
         NewFrom.BringToFront();
         NewFrom.Show();
    }
    catch (Exception)
    {
    }
 }

Posted by 천사주니
,