UpdateListBox

A list box that automatically updates its properties.


Constructors:

New()

Properties:

Enabled As Boolean

True if the control is enabled (read-only).

Items As System.Collections.IList

Collection of items in the list box (read-only).

SelectedIndex As Integer

Index of the selected item of a single-selection list box.

SelectedIndices As System.Windows.Forms.ListBox+SelectedIndexCollection

Indices of the items of a multi-select list box that are selected (read-only).

SelectedItem As Object

The items in the single-selection list box that is selected.

SelectedItems As System.Collections.IList

Collection of items in the multi-select list box that are selected (read-only).

Text As String

Text displayed in the control (read-only).


Events:

GetEnabled () As Boolean

Event fired to determine whether the control is enabled.

GetItemSelected (ByVal tag As Object) As Boolean

Event fired to get the selected items of a multi-select list box.

GetItemText (ByVal tag As Object) As String

Event fired to get the text associated with an item.

GetItems () As System.Collections.IEnumerable

Event fired to get the list of items.

GetSelectedItem () As Object

Event fired to get the selected item of a single-select list box.

SetItemSelected (ByVal tag As Object, ByVal value As Boolean)

Event fired when the user selects items of a multi-select list box.

SetSelectedItem (ByVal value As Object)

Event fired when the user selects an item of a single-select list box.