Free Source Code and Tutorials

Custom Search

08-The Listbox

ListBox control displays a list of items that enables the user to select one or more and present a list of choices.


The choices are displayed vertically in a single column by default, although you can set up multiple columns too. The user can scroll up and down, or left to right through the list using  scroll bars  when the number of items exceeds.




This is the syntax in adding items to a list box. Use the Items.Add() method. See the example below.

  1. ListBox1.Items.Add("janno")

This is the syntax in removing specific item in a listbox. Use the Items.Remove() method. See the example below.

  1. ListBox1.Items.Remove("janno")

This is the syntax in removing all items in a listbox. Use the Items.Clear() method. See the example below.



Facebook Comments
(Visited 6 times, 1 visits today)
Share this

Check Your Domain Ranking

Leave a Reply

Your email address will not be published. Required fields are marked * © 2016 Frontier Theme

Subscribe For Latest Updates

Signup for our newsletter and get notified when we publish new articles for free!

%d bloggers like this: