Name
ListBox
Synopsis
This class represents a list box control. Use the Rows property to set how many
rows you want to be displayed in the control at once (and hence, how much space the
list box will occupy). You can also set the SelectionMode property to ListSelectionMode.Multiple if you want a
user to be able to select more than one item from the list box at once.
Most of the list-specific functionality, such as determining the selected item and
reacting to a SelectedIndexChanged event, is
provided by the ListControl class, which ListBox inherits from.
Public Class ListBox : Inherits ListControl : Implements_ System.Web.UI.IPostBackDataHandler ' Public Constructors Public Sub New() ' Public Instance Properties Overrides Public Property BorderColor As Color Overrides Public Property BorderStyle As BorderStyle Overrides Public Property BorderWidth As Unit Overridable Public Property Rows As Integer Overridable Public Property SelectionMode As ListSelectionMode Overrides Public Property ToolTip As String ' Protected Instance Methods Overrides Protected Sub AddAttributesToRender( ByVal writer As System.Web.UI.HtmlTextWriter) Overrides Protected Sub OnPreRender(ByVal e As EventArgs) Overrides Protected Sub RenderContents( ByVal writer As System.Web.UI.HtmlTextWriter) End Class
Hierarchy
System.Object→ System.Web.UI.Control(System.ComponentModel.IComponent, System.IDisposable, System.Web.UI.IParserAccessor, System.Web.UI.IDataBindingsAccessor)→WebControl(System.Web.UI.IAttributeAccessor) ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access