binding data in an array to a listbox
-
hey all, Im really new to this all so please bear with me. I've basically just written a module with a main function that creates an array of data (this is fine) and open a form with a listbox (courslist) that i want to populate with the values stored in the array (course). For some reason (i know im missing somethin silly) the form app crashes with An unhandled exception of type 'System.ArgumentNullException' occurred in system.windows.forms.dll Additional information: Value cannot be null. Here's the call i make to bind the data. Any help would be greatly appreciated f1.courselist.DataSource() = course f1.Show() Cheers,
-
hey all, Im really new to this all so please bear with me. I've basically just written a module with a main function that creates an array of data (this is fine) and open a form with a listbox (courslist) that i want to populate with the values stored in the array (course). For some reason (i know im missing somethin silly) the form app crashes with An unhandled exception of type 'System.ArgumentNullException' occurred in system.windows.forms.dll Additional information: Value cannot be null. Here's the call i make to bind the data. Any help would be greatly appreciated f1.courselist.DataSource() = course f1.Show() Cheers,
-
datasource is used i database (oledb connections) use this funda dim i as integer for i=0 to course.lenght-1 f1.courselist.items.add(course(i)) next f1.show() hope this will works