hi all,

I am using combo box control in our application but facing one problem and which is like thisI am able to add items in combo box but i also want to add index in combo box in VB we do this as follows
cmbSymbolFamily.AddItem Name
cmbSymbolFamily.ItemData(cmbSymbolFamily.NewIndex) = IndesValue
I want to do same this in vb.net first line is possible as
cmbSymbolFamily.Items.Add Name
but not able to add index.

So plz can anybody tell me how to do that?

Thanks in advance

Regards
Guest

Dim item1 As New ListItem
        item1.Text = "Hello"
        item1.Value = "Hi"

listbox1.Items.Insert(INDEX#, item1)

If this answers your question, please mark as solved and give me some reputation points! Thanks.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.