private void btnChange_Click(object sender, EventArgs e) { clsAdmin admin = new clsAdmin(); if (admin.Change_Password(txtID.Text, txtOldPW.Text, txtNewPW.Text)) { MessageBox.Show("Password for UserID : " + userid + " is changed.", "Successful!"); this.Close(); } else { MessageBox.Show("Password for UserID : " + userid + " is not changed.", "Check your password again!"); } }