I was searching on the web for information on how to validate an entry in a textbox as a valid password before proceeding.
I fould this code:
CODE
Private Function PasswordInvalid(ByVal user_name As String, _
ByVal password As String) As Boolean
Return (user_name <> password)
End Function
I don't actually know how to use it. I really don't understand the
CODE
Return (user_name <> password)
I want to enter a password that it checks user input with. I guess it would be something like:
CODE
Private Function PasswordInvalid(Byval password As String) As Boolean
If txtPassword.Text ==false then
Return False;
Elseif txt.Password.Text = test then
Return True;
End If
Ahaha I have no real idea, just pulling stuff out of my ass I guess, I am a real beginner and just trying to understand this, I hope someone can kind of figure out what I am trying to do in "my code"......