ListBox Items

tonycrew

Well-known member
Joined
Apr 20, 2009
Messages
55
Programming Experience
Beginner
Hello, Im Trying to do it so..

VB.NET:
If ComboBox58.Items.Contains(TextBox1.Text) Then

(ComboBox58 is a ListBox, Changed Name)
But it doesn't do the things inside that bit of code, Im tryna do it so if the ListBox Contains an Item called TextBox1.Text (The Value Of the Text)

But doesn't work..?

I Apriciate Help.. (My Spelling Mistakes <<)
 
You'll need to be a bit more specific than that, from what little code is posted it looks good.

Also, have you tried stepping through the code line by line checking the value in the textbox vs what's in the listbox/combobox?
 
no i mean, it doesnt do that line of code or whats in it.. it skips that bit of code so didnt think it would be what ive put

..? so any solutions ?..

it doesnt do that line of code or whats in it.. it skips that bit of code so didnt think it would be what ive put
 
So then posting the line of code that's never ran isn't going to help you much, you're also not providing any relevant information as to why that line of code is never reached.
 
Back
Top