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
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