0

how can i add my items from list to combo box ???

 Dim IntList As New List(Of Integer)

 Sub proc1()
        Dim iCount As Integer
        For iCount = 1 To 10
            IntList.Add(iCount)

        Next

 If Done = True Then
            cmb1.Items.AddRange(IntList.ToArray)

this is the msg error :

Error 1: Value of type '1-dimensional array of Integer' cannot be converted to '1-dimensional array of Object' because 'Integer' is not a reference type.

2
Contributors
1
Reply
16
Views
3 Years
Discussion Span
Last Post by Reverend Jim
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.