tags:

views:

102

answers:

0

I'm quite new to visual c++ but not c++. Anyway I need to populate a listbox with an object of a schedule that contains a list of songs. So for one schedule, i want to print the names of the songs in the textbox.

I set bindingsource as the schedule class, but where do i write the code for it? In the forms.h file (where the listbox is), i don't see anything where I can write the code on where the list items are. I've been googling for half an hour and i'm very lost.

Am i supposed to create my own listbox in a separate .cpp file?, then and add it to the form? When i double click the listbox, it only takes me to "itemselected" event handler.