private void btnAccept_Click(object sender, EventArgs e) { //Declares string to equal the password textbox text & declares another string as the system password which is password string password = txtPassword.Text; string systempassword = "******"; //If statement to check whether the text entered into the password textbox is equal to the system password //If the password entered is correct displays the Edit/Remove Paper form //Otherwise if the wrong password is entered displays 'incorrect password' in the textbox if (password.Equals(systempassword)) { frmRemovePaper removeForm = new frmRemovePaper(); removeForm.Show(); this.Close(); } else { txtPassword.BackColor = Color.Red; txtPassword.Text = "Incorrect Password"; } }