G
Guest
Hi, All
I have to search combobox and when search string will match the item in
combobox collection select it (VB.NET Windows CE Device)
Code below return exception: "Cast from 'Location' to type 'String' is not
valid"
Dim sSearch as String
Dim sItm as String
For Each sItm In cbo.Items
If sSearch.CompareTo(sItm) = 0 Then
i = cbo.Items.IndexOf(sItm)
cbo.SelectedIndex = i
End If
Next
Please help
I have to search combobox and when search string will match the item in
combobox collection select it (VB.NET Windows CE Device)
Code below return exception: "Cast from 'Location' to type 'String' is not
valid"
Dim sSearch as String
Dim sItm as String
For Each sItm In cbo.Items
If sSearch.CompareTo(sItm) = 0 Then
i = cbo.Items.IndexOf(sItm)
cbo.SelectedIndex = i
End If
Next
Please help