How can I copy an array to a listbox?
Use an arraylist instead and you can bind directly to the listbox's datasource.
Utility to Convert Visual Studio.NET 2003 Project Files Edneeis.com
Dim arText() As String = {"", "Red", "White", "Blue"} ListBox1.DataSource = arText
Iouri Boutchkine
Cool you can bind to an array too, anything that implements IList or IListSource. Then if you don't want to bind to it you can add it like this: VB Code: Dim arText() As String = {"", "Red", "White", "Blue"} ListBox1.Items.AddRange(arText)
Dim arText() As String = {"", "Red", "White", "Blue"} ListBox1.Items.AddRange(arText)
Forum Rules