Gets or sets a value indicating how the items in a listbox are selected at run time.
'Declaration
Public Property SelectionMode As SelectionMode
'Usage
Dim instance As ListBox
Dim value As SelectionMode
instance.SelectionMode = value
value = instance.SelectionMode
Property Value
A SelectionMode value indicating how the items in a listbox are selected at run time. By default, SelectionMode.Single.
If set to Single, only one item can be selected at a time. If set to Multiple, multiple items can be selected without pressing a modifier key. If set to Extended, multiple items can be selected but only if a modifier key is pressed.
Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2