qadeer37
Well-known member
I have listBox control of user objects where each object has userName and Password.
What I want to do is when a user enters userName and Password a method goes through the listBox checks for whether userName exists or not and if userName exists then matches the password.
What I have in my mind is that to use for each loop but I think it would become complex so is there any better way?
What I want to do is when a user enters userName and Password a method goes through the listBox checks for whether userName exists or not and if userName exists then matches the password.
What I have in my mind is that to use for each loop but I think it would become complex so is there any better way?