private void btnBack_Click(object sender, EventArgs e) { try { frmInvoice frmID = new frmInvoice(); frmID.ShowDialog(); this.Hide(); } catch { } }
private void M_INVOICE_Click(object sender, EventArgs e) { try { Form[] activeChild = this.MdiChildren; if (activeChild.Length == 0) { frmInvoice frmID = new frmInvoice(); frmID.ShowDialog(); } } catch (Exception ex) { throw ex; } }