private void loginbutton_Click(object sender, EventArgs e) { if (userbox.Text == "admin" && passbox.Text == "admin") { material_test m = new material_test(); m.Show(); this.Hide(); } else { MessageBox.Show("Invalid username or password"); } }
private void loginbutton_Click(object sender, EventArgs e) { material_test m = new material_test(); m.Show(); }