You can try with this..
namespace WindowsFormsApplication11 { public partial class Form1 : Form { List<string> _items = new List<string>(); // <-- Add this
public Form1() { InitializeComponent();
_items.Add("One"); // <-- Add these _items.Add("Two"); _items.Add("Three");
listBox1.DataSource = _items; } } } - Marked As Answer byHeri Tony Tuesday, October 06, 2009 2:29 AM
-
|