top of page

Visual Basic [6] Tutorial Blog :


Lesson 6: Working with List Box and Combo Box.

In previous lesson, we have learned the usage of text boxes and labels . In this lesson,we shall learn to work with the list box and the combo box. Both controls are used to display a list of items. However, they differ slightly in the ways they display the items.

The list box displays the items all at once in a text area . On the other hand, the combo box displays only one item initially; the user needs to click on the handle of the combo box to view the rest of the items in a drop-down list. 6.1 The List Box The List Box is to present a list of items where the user can click and select the items from the list.

Items can be added at design time or at runtime. The items can also be deleted at design time or at runtime. 6.1.1 Adding Items to a List Box To add items at design time, start a new project and insert a list box on the form. Right-click on the list box to access the properties window. Next, click on collection of the Item property to bring up the String Collection Editor . Now, enter the items in the editor as shown in Figure 6.1 :

Press Icon below for pdf.


Featured Posts
Check back soon
Once posts are published, you’ll see them here.
Recent Posts
Archive
Search By Tags
No tags yet.
Follow Us
  • Facebook Basic Square
  • Twitter Basic Square
  • Google+ Basic Square
bottom of page