private void btn_back_Click(object sender, EventArgs e) { View_Result fm = new View_Result(); this.Visible = false; fm.ShowDialog(); this.Visible = true; this.Close(); }
private void btn_Login_Click(object sender, EventArgs e) { View_Result fm = new View_Result(); if (this.txt_username.Text == "admin" && this.txt_password.Text == "123") { fm.Show(); } else { MessageBox.Show("Password is wrong!!!"); } }