winforms - C#: easiest way to populate a ListBox from a List -
if have list of strings, eg:
list<string> mylist = new list<string>(); mylist.add("hello"); mylist.add("world");
is there easy way populate listbox using contents of mylist?
try
list<string> mylist = new list<string>(); mylist.add("hello"); mylist.add("world"); listbox1.datasource = mylist;
Comments
Post a Comment