Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

How to find index by value in ComboBox

$
0
0

Hello

I am using VB 2008 for creating Win Forms Application.

For one of my combo box I want to select it's item using Item Value of that item.

To do this i tried

dim myVal as integer = 1

ComboBox.SelectedValue = myVal

but this doesn't actually Shows the Selected Item 'Text' in Text Field of ComboBox.

so i want to use something which sets

ComboBox.SelectedIndex = 'some code which finds Index of Value i know'.

SANDEEP


Viewing all articles
Browse latest Browse all 12583

Trending Articles



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