NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ListBox Class

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

Remarks

[To be supplied.]

Requirements

Namespace: System.WinForms

Assembly: System.WinForms.dll

See Also

ListBox Members | System.WinForms Namespace