Changes

ComboBox Control in VB6

1,031 bytes added, 18:44, 10 January 2008
The following lines were added (+) and removed (-):
== About the ComboBox ==Use a combo box when you need a user to either select a list of suggested alternatives or to type his own , and use a list box if the user is required to select from a fixed number of items.  There is only one single type of a list box, but there are three types of combo boxes which can be selected with the style property value of 0(Drop Down Combo Box), 1(Simple Combo Box), and 2(Drop-Down List Box).Items are added or removed to combo and list boxes during both runtime and design time.  If you want to add list items at design time, select the list property. List1.additem "Hello World" 'Add items List1.additem "This is 2nd Item" List1.additem "First item",0 'squeeze into 1st list1.removeitem 3 'Remove the fourth item=== Clear === ist1.clear 'Clear the list boxThe number of items in a list is given by the listcount property. The currently selected item's index can be returned with the listindex property. A listindex property of -1 indicates that no item has been selected
Bureaucrat, administrator
16,192
edits