public Main() { InitializeComponent(); frm = new Login(this); frm.MdiParent = this; frm.WindowState = FormWindowState.Maximized; frm.Show(); EnableAllToolStrip(); //supremeBill = new Supreme_Bill(); //supremeBill.MdiParent = this; //supremeBill.WindowState = FormWindowState.Maximized; //supremeBill.Show(); }
private void LoginToolStripMenuItem_Click(object sender, EventArgs e) { if (!FormStatus.IsActive(this, frm)) { frm = new Login(this); frm.MdiParent = this; frm.WindowState = FormWindowState.Maximized; frm.Show(); } else { MessageBox.Show("Login form is Already Opened \n please close the form first"); } }