private void cmdAccess_Click(object sender, EventArgs e) { bool is_valid; bool validate; server.Service1 server = new server.Service1(); server.Access(txtAdmin_Titlle.Text, txtAccess_Code.Text, out is_valid, out validate); if (validate == true & is_valid == true) { this.Hide(); ResetAdmin ra = new ResetAdmin(); ra.Show(); } else { MessageBox.Show("Invalid information"); } }