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
You can try
If frmOther.ListBox1.Items.Contains(txtMasked.Text) Then
MsgBox("name not found")
Assuming your other form is called frmOther, etc.
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 .