0

I have two different forms. one has a listbox and the other has a masked textbox. the masked textbox is used as a login and i would like the masked textbox to be checked against the listbox items to be able to "gain access" and login

Any ideas?

3
Contributors
2
Replies
3
Views
4 Years
Discussion Span
Last Post by M.Waqas Aslam
Featured Replies
  • You can try [code] If frmOther.ListBox1.Items.Contains(txtMasked.Text) Then 'login OK Else MsgBox("name not found") End If [/code] Assuming your other form is called frmOther, etc. Read More

1

You can try

If frmOther.ListBox1.Items.Contains(txtMasked.Text) Then
    'login OK
Else
    MsgBox("name not found")
End If

Assuming your other form is called frmOther, etc.

0

you can also use loop in order to check each items of the listbox. to gain access. but jim's solution is i think fast .

Regards

This article has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.