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, StringWithInteg er)
To populate a generic CombBox
StringWithInteg er has two properties Str and Value
I need to get the Value property of the StringWithInteg er part of the
selected item
The selected item should have the same type as the SortedList items (I
guess)
I got this far
= DirectCast(Comb oBox1.SelectedI tem, SortedList(Of String,
StringWithInteg er)).Value
I don't think I want to cast to SortedList but something like
SortedList.Item
I noted the term KeyValuePair(of String, StringWithInteg er)
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, StringWithInteg er)
To populate a generic CombBox
StringWithInteg er has two properties Str and Value
I need to get the Value property of the StringWithInteg er part of the
selected item
The selected item should have the same type as the SortedList items (I
guess)
I got this far
= DirectCast(Comb oBox1.SelectedI tem, SortedList(Of String,
StringWithInteg er)).Value
I don't think I want to cast to SortedList but something like
SortedList.Item
I noted the term KeyValuePair(of String, StringWithInteg er)
but don't know how to use it
Thanks for any help
Comment