private void rectangleShape1_Click(object sender, EventArgs e) { this.Hide(); LoginForms newForm = new LoginForms(); newForm.ShowDialog(); }
private void textBox2_TextChanged(object sender, EventArgs e) { if (textBox2Username.Text == "admin" & textBox3.Text == "admin") { this.Hide(); LoginForms newForm = new LoginForms(); newForm.StartPosition = FormStartPosition.CenterScreen; newForm.ShowDialog(); } else { MessageBox.Show("Wrong username or password."); } }