Bind listbox to object data source in windows form ic C#

Sep 13 2009 1:28 PM
Hi all,
 
I've made a blank solution ten add 2 class library projects:-
1- The first one called "DataAccessOjects" and contains a public class called "Customer_DAO" with 2 properties "ID, Name"
2- The second one called "DataAccess" and contains a public class called "Customer_DA" with one method called "AddCustomer" that takes an object from "Customer_DAO" - this is available after add reference from the first project into the second one -
Then I added a windows form project that contains a listbox...
Now I'd like to bind listbox to datasource of type object... How can I do that in windows form in c#???
 
I hope that my Q is clear

Answers (4)