I set the datasource within the same method as the initialize Component (so my listbox will load with the existing data): The Problem: This does not update the listbox. To expand on @guneysus's post: You cannot clear Items if they were brought in using List Box.
Upon initialization of my listbox the data will populate but after it will not change (hence refresh does not work). I could set the Data Source again but that feels sloppy.
After looking into some of the documentation I noticed the event handler Data Source Changed which maybe more for what I am looking for.
At this point I'm completely unsure of why this isn't working.
You can add individual items to the list with the Add method. This is a complete sample ready to run once you have copied it to your project.
The Name property represents the name of the control, which is a unique identifier of a control.
Logic: I have a sql database as my source, it is set as: DBquery.information Retreval() is a static method within the my DBQuery static class. Clear(), you'll have to bring them in using List Box.