I have a hashset and would like to add it to a combobox.
So this works
Dim strLeaderNameListString() As String
ComboBox1.Items.Clear()
ComboBox1.Text = Nothing
Me.ComboBox1.Items.AddRange(strLeaderNameListString)
ComboBox1.Select()
Anything close to make this work?
Dim strLeaderNameListString As HashSet(Of String)
ComboBox1.Items.Clear()
ComboBox1.Text = Nothing
Me.ComboBox1.Items.AddRange(strLeaderNameListString)
ComboBox1.Select()
.NET ProgrammingVisual Basic.NET
Last Comment
chadmanvb
8/22/2022 - Mon
Fernando Soto
Getting any errors? If so please post along with the inner exception.
chadmanvb
ASKER
I get an error telling me:
ComboBox1.Items.AddRange(strPKGNameList)
Error 1 Value of type 'System.Collections.Generic.HashSet(Of String)' cannot be converted to '1-dimensional array of Object'.