private void button2_Click(object sender, EventArgs e) { if ((UserBox.Text == username) && (PassBox.Text == password)) { MessageBox.Show("Login to the app was successful!"); //Cool feature but clicking okay everytime is annoying this.Hide(); DataDineFrm ss = new DataDineFrm(); ss.Show(); } else { MessageBox.Show("Login details incorrect"); PassBox.Text = ""; } //LoginScreen ss = new LoginScreen(); //ss.Show(); }
private void button2_Click(object sender, EventArgs e) { if ((UserBox.Text == username) && (PassBox.Text == password)) { //MessageBox.Show("Login to the app was successful!"); this.Hide(); //Form1 ss = new Form1(); //Form1.Show(); DataDineFrm ss = new DataDineFrm(); ss.Show(); } else { MessageBox.Show("Login details incorrect"); PassBox.Text = ""; } //LoginScreen ss = new LoginScreen(); //ss.Show(); }