You did not provide information about all of your variables, but I suspect that the string
string userInput = Convert.ToString(this.passInput);
- a problem. If this.passInput is a control, you will get the type name of the control, not what the user entered into the control.
If this is true, you can simplify your code like this:
if (passwordList.Contains(this.passInput.Text)) { MessageBox.Show("FOUND"); foundResult = 1; }
Martin liversage
source share