I need to check if the user's name has been added into a listbox. As soon as it is I need to change the user form's caption to display the correct status.

Code:
If lstConnections.AddItem = txtName.Text Then
frmMain.Caption = "SmallTalk -  Now Serving"
End If
This is the code I thought would work, but actually it stirs the following error, "Compile error - Argumant not optional."

Why did I get this error and How will I be able to check for the user's name added to the listbox in order to be able to set the correct status for the form's caption?