A Listbox control allows user to select a single element or an item from a list. And it allows the programmer to add an item(s) at design time or at runtime.
This time,open visual basic and create a new application and save it as “listboxcontrol”. Then add a listbox from the toolbox, and it should look like as shown below.
Then we can populate the listbox using the window properties.
Here’s the following steps
1. Select listbox control
2. Go to the properties window
3. Then select the items
4. And click the ellipses button
5. Then the string Collection Editor dialog box will