private void button_Back_Click(object sender, EventArgs e) { OptionPage n = new OptionPage(); n.ShowDialog(); this.Dispose(); }
private void button_Back_Click(object sender, EventArgs e) { OptionPage op = new OptionPage(); op.ShowDialog(); this.Hide(); }
void login() { String user = textBoxUserName.Text; String Password = textBox_LoginPassword.Text; if (user.Equals("Swapan") && (Password.Equals("1234"))) { MessageBox.Show("Successfully Loged In.."); this.Hide(); OptionPage f = new OptionPage(); f.ShowDialog(); } else { MessageBox.Show("Wrong Username and Password"); } }