Searching string value into a listbox

rcarrillov

Member
Joined
Aug 23, 2006
Messages
6
Location
Mexico
Programming Experience
Beginner
Hi, i think this is very simple, but right now its giving me a hard time

How can i search a string value in a listbox, to verify if it has been allready stored in that listbox.

im trying this
docID = txtDocCID.Text
If lstDocumentos.Items.IndexOf(docID) = -1 Then ....
Thanks in advance

Ricardo C.
Mexico
 
Back
Top