Net-informations.com
SiteMap  | About    

Listbox Control



You can use the Add or Insert method to add items to a list box. Use the Rows property to specify the height of the control.

listbox-control

VB.Net

C#

The Add method adds new items at the end of an unsorted list box. The Insert method allows you to specify where to insert the item you are adding.

Listbox control that allows single or multiple item selection.To enable multiple item selection, set the SelectionMode property to ListSelectionMode.Multiple.

VB.Net

C#

The following ASP.NET program add seven days in a week to the ListBox in the load event and display the selected item in the label.

Default.aspx




Click the following links to see full source code

C# Source Code
VB.NET Source Code
default.aspx.cs
default.aspx.vb





net-informations.com (C) 2019    Founded by raps mk
All Rights Reserved. All other trademarks are property of their respective owners.