Menu Close

ListBox Control

Creates a list box that displays a list of items that you can select one or more items from. A list box is similar to a combo box; however, a combo box initially displays a single item.

Create a listbox control in vb.net:

  1.  Drag the ListBox control from the Common Controls, Toolbox and drop it into the windows form. Resize it as the required.
  2. Add the items into the list box control.

There are two method to add the items into the list box control:

  • Add the items at the design time: Open ListBox control properties. Click Items Collection to open the String Collection Editor. Enter the items into the window and click on the “OK” button to add. Please refer to the picture.
  • Add the items at the run time:

 Me.ListBox1.Items.Add(“items 3”)

 

Add Items to ListBox from Items Collection

 

 

 

 

 

 

 

 

2 comments on “ListBox Control

  1. Hi dude! I quite agree with your opinion.

  2. Dudley Curboy on said:

    Aloha dude! I’ve just stopped by to say thanks for this accurate writing! Keep posting that way.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

* Copy This Password *

* Type Or Paste Password Here *

18,519 Spam Comments Blocked so far by Spam Free Wordpress

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>