Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27512

Locate an item in Combo Box

$
0
0
How to locate an item in a combobox by passing it's index value ? FindString method may not be useful as my combobox can contain similar strings.
something like this .. But this does't work for me here which i usulally used to do in VB6

Code:

For a = 0 To cmbGroupName.Items.Count - 1
            If cmbGroupName.Items(a) = vVAL Then
                Exit For
            End If
        Next
        cmbGroupName.SelectedIndex = a


Viewing all articles
Browse latest Browse all 27512

Trending Articles



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