This is a control that presents a list of items to the user. They may be navigated using the keyboard, or the scrollbar on the right side of the control. One or more items may be selected as well.
The preferred way to add items is to set them all via an array at once, which is definitely the most efficient way. The following is an example of this:
ListBox lb = new ListBox(); // set up properties on the listbox here. lb.Items.All = new String [] { "A", "B", "C", "D"};
Object
MarshalByRefObject
MarshalByRefComponent
Control
RichControl
FormatControl
ListControl
ListBox
[Visual Basic] Public Class ListBox Inherits ListControl [C#] public class ListBox : ListControl [C++] public __gc class ListBox : public ListControl [JScript] public class ListBox extends ListControl
[To be supplied.]
Namespace: System.WinForms
Assembly: System.WinForms.dll