public void btn_Home_Click(object sender, EventArgs e) { if (home == null || home.IsDisposed) { home = new frmHome(); } home.MdiParent = this; home.Show(); }
public frmMain() { InitializeComponent(); if(home == null) { home = new frmHome(); } home.MdiParent = this; home.Show(); //Cursor.Hide(); }