SkilledDreamer
New member
- Joined
- Jul 17, 2014
- Messages
- 2
- Programming Experience
- Beginner
Hey forum!
I am using VS 2012 and Sequel Server Compact 4.0 database. I am trying to retrieve data from a table within the database to populate into a checkedlistbox through my windows form as soon as it gets opened up. I have the database code to retrieve the information within a different class while my checkedlistbox is in a seperate class. I was trying to use OOP and populate data into the checkedlistbox, but I'm not sure how to code this. I tried using (this being an example) checkedlistbox.Items.Add(databaseObject.Method(items)); but that didn't work. What should I do here?
SkilledDreamer
I am using VS 2012 and Sequel Server Compact 4.0 database. I am trying to retrieve data from a table within the database to populate into a checkedlistbox through my windows form as soon as it gets opened up. I have the database code to retrieve the information within a different class while my checkedlistbox is in a seperate class. I was trying to use OOP and populate data into the checkedlistbox, but I'm not sure how to code this. I tried using (this being an example) checkedlistbox.Items.Add(databaseObject.Method(items)); but that didn't work. What should I do here?
SkilledDreamer