在 listbox1 中 的item的属性为collection,
如何去创建一个这样的东西?只要能实现 item.add("123") item.count 之类的就行了......谢谢.

解决方案 »

  1.   

    ' Creates and initializes a new ArrayList.
            Dim myAL As New ArrayList()
            myAL.Add("Hello")
            myAL.Add("World")
            myAL.Add("!")
            
            ' Displays the properties and values of the ArrayList.
            Console.WriteLine("myAL")
            Console.WriteLine(ControlChars.Tab + "Count:    {0}", myAL.Count)
            Console.WriteLine(ControlChars.Tab + "Capacity: {0}", myAL.Capacity)
            Console.Write(ControlChars.Tab + "Values:")
            PrintValues(myAL)
      

  2.   

    listbox1 本身就可以实现你说的功能了