is there a way to check whether any of the listboxes items = a string, say from a textbox? thanks
Printable View
is there a way to check whether any of the listboxes items = a string, say from a textbox? thanks
listbox.selecteditem.text = textbox.text
i mean like any of them from the whole list not just the selected item
try something like this:
vb Code:
for i =0 to listbox.items.count if listbox.items(i).text = textbox.text then 'do something end if next
ok thanks a lot
Use ListBox1.Items.FindByText() or .FindByValue().
thanks thats even easier!!
add [resolved] dude.
yep difinately resolved!