private void balanceToolStripMenuItem_Click(object sender, EventArgs e) { var frm = new CashBalance(); frm.MdiParent = this; // assign MdiParent of FormB to FormC frm.Dock = DockStyle.Fill; frm.Show(); }
private void btn_CashFlow_Click(object sender, EventArgs e) { try { var frm = new CashBalance(); frm.MdiParent = this; // assign MdiParent of FormB to FormC frm.Dock = DockStyle.Fill; frm.Show(); } catch (Exception) { } }