ListBox Control Properties in VB.NET
What are the properties of ListBox Control in VB.NET?
Explanation
List Box Control Properties
Following table lists the Properties,Events, Methods used commonly with the
ListBox Control in Visual Basic.net 2008.
Properties:
Properties |
Description |
ColumnWidth |
Property used to set or get the column width. |
DrawMode |
Property used to set or get the drawing mode for the listbox. |
HorizontalExtent |
Property used to set or get the width for scrolling horizontally. |
HorizontalSCrollBar |
Property used to set or get if a horizontal scroll bar is displayed. |
ItemHeight |
Property used to set or get items height. |
Items |
Property returns a collection of the items. |
MultiColumn |
Property used to set or get if multiple columns are supported. |
ScrollAlwaysVisible |
Property used to set or get if a vertical scroll bar is always shown. |
SelectedIndex |
Property used to set or get the index of the currently selected item. |
SelectedIndices |
Property used to get a collection with indices of all selected item. |
SelectedItem |
Property used to get a selected item. |
SelectedItems |
Property used to get a selected items. |
SelectionMode |
Property used to get or set the selection mode. |
Methods:
Method |
Description |
ClearSelected |
Method used to set the focus for control. |
EndUpdate |
Method used to resume visual updating of the list box. |
FindString |
Method used to find the first item that begins with the indicated string. |
FindStringExact |
Method used to find first item in the list box that matches the indicated string. |
GetItemHeight |
Method used to return the height of an item. |
GetSelected |
Method used to return true if the indicated item is selected. |
IndexFromPoint |
Method used to return the index of the item at the given coordinates. |
SetSelected |
Method used to select or deselect the idndicated item. |
Events:
Events |
Description |
SelectedIndexChanged |
Triggered when the SelectedIndex property has changed. |