private void button2_Click(object sender, EventArgs e) { MessageBox.Show("Changes applied"); this.Hide(); Main main = new Main(); main.Show(); }
private void button1_Click(object sender, EventArgs e) { MessageBox.Show("Successfully Registered"); this.Hide(); Main main = new Main(); main.Show(); }
private void Button1_Click(object sender, EventArgs e) { if(TextBox1.Text == "abcd") { if(TextBox2.Text== "1234") { this.Hide(); Main main1 = new Main(); main1.Show(); } else { MessageBox.Show("Invalid Username and Password"); } } else { MessageBox.Show("Invalid Username and Password"); } }
private void button3_Click(object sender, EventArgs e) { this.Hide(); Main main = new Main(); main.Show(); }