(Formerly known as ListBoxAdd, which is now obsolete)
ListBox.AddItem(string newitem)
Adds NEWITEM to the specified list box. The item will be appended to
the end of the list.
NOTE: List boxes have a limit of 200 items. If you try to add more than that,
this function will return false and the item will not be added.
Example:
String input = txtUserInput.Text;
lstChoices.AddItem(input);
will take the input from the user and add it to the listbox.
See Also: ListBox.Clear,
ListBox.FillDirList,
ListBox.InsertItemAt,
ListBox.Items,
ListBox.RemoveItem
|