private void usuariosToolStripMenuItem_Click(object sender, EventArgs e) { frm_user frm = new frm_user(false); frm.MdiParent = this; frm.Show(); }
private void toolStripButton1_Click(object sender, EventArgs e) { DialogResult res = MessageBox.Show("Deseja mesmo cadastrar uma novo usuário?", "Midas - Controle Financeiro", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (res == DialogResult.Yes) { //frmIndex frmp = new frmIndex(user); //Form_autenticaForne frm = new Form_autenticaForne(); frm_user frm = new frm_user(true); frm.MdiParent = this.MdiParent; frm.Show(); this.Hide(); } }