private void label5_Click_1(object sender, EventArgs e) { if (LoginStatus == true) { Form7 f7 = new Form7(LoginStatus); f7.Show(); this.Hide(); } else { MessageBox.Show("You can't access this\n Login first"); } }
private void button1_Click(object sender, EventArgs e) { if (Plogin == true && back == true) { Form7 f7 = new Form7(Plogin); f7.Show(); this.Close(); } else if (Plogin == true) { Form1 f1 = new Form1(Plogin); f1.Show(); this.Close(); } }