List Box ControlDescriptionA list box displays a list of items from which the user can select one or more. If the number ofitems exceeds what can be displayed, a scroll bar is automatically added to the list box.If no item is selected, the ListIndex property value is -1. The first item in the list if selectedmakes the ListIndex become 0, the second item makes it 1 and so on and ListCount is alwaysone more than the largest ListIndex value.The most important properties of list boxes are List, Listcount and Listindex and the mostimportant methods are Additem and Removeitem.Remarks· To add or delete items in a list, use the AddItem or RemoveItem method.· Set the List, ListCount, and ListIndex properties to enable a user to access items in thelist.Additem methodAdds an item to a ListBox or ComboBox control or adds a row to a Grid control. Doesn'tsupport named arguments.
|
Post a Comment