Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

how to get the index of the specific selecteditem in listbox?

$
0
0
I have this code in my search textbox:
listbox.Items.Clear()
        For Each item As String In c
            If item.Contains(textbox.Text) Then
                listbox.Items.Add(item)
            End If
        Next



The problem is thru searching the search item gets the value of the first index of the first item in the listbox which doesn't equal to their original index. I'm using array.

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>