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.SetSelected

Allows the user to set an item as being selected or not. This should only be used with ListBoxes that allow some sort of multi-selection.

[Visual Basic]
Public Sub SetSelected( _
   ByVal index As Integer, _
   ByVal value As Boolean _
)
[C#]
public void SetSelected(
   int index,
   bool value
);
[C++]
public: void SetSelected(
   int index,
   bool value
);
[JScript]
public function SetSelected(
   index : int,
   value : Boolean
);

Parameters

index
Index of the item to mark as selected
value
boolean indicating whether the item should be selected or not

See Also

ListBox Class | ListBox Members | System.WinForms Namespace