Generic SortedList question

A

active

This is where a different thread ended.
The subject of this query is quite different from that of the other thread
so I thought I should start a new thread.

I'm using
Private mItemList As SortedList(Of String, StringWithInteger)

To populate a generic CombBox

StringWithInteger has two properties Str and Value

I need to get the Value property of the StringWithInteger part of the
selected item

The selected item should have the same type as the SortedList items (I
guess)

I got this far
= DirectCast(ComboBox1.SelectedItem, SortedList(Of String,
StringWithInteger)).Value


I don't think I want to cast to SortedList but something like
SortedList.Item

I noted the term KeyValuePair(of String, StringWithInteger)
but don't know how to use it

Thanks for any help
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top