private void button1_Click(object sender, EventArgs e) { if (textBox1.Text == "admin" && textBox2.Text == "admin") { Form16 form16 = new Form16(); form16.Show(); Close(); } else { MessageBox.Show("Wrong username or password!!"); } }
private void button5_Click(object sender, EventArgs e) { if (v13 == null || v13.IsDisposed) { v13 = new Form16(); v13.Show(); } }