private void tela2ToolStripMenuItem_Click_1(object sender, EventArgs e) { Tela2 form = new Tela2(); form.MdiParent = this; form.Show(); this.toolStripStatusLabel1.Text = "Tela 2"; }
private void button1_Click(object sender, EventArgs e) { if ((txtID.Text == "2215204679") && (txtSenha.Text == "0000")) { Tela2 tela = new Tela2(); tela.Show(); } else if ((txtID.Text == "2215105592") && (txtSenha.Text == "0001")) { Tela2 tela = new Tela2(); tela.Show(); } else { MessageBox.Show("Dados Inválidos"); } txtID.Clear(); txtSenha.Clear(); }