Gets or sets the value of the SelectedItem, obtained by using SelectedValuePath.
'Declaration
Public Property SelectedValue As Object
'Usage
Dim instance As ListBox
Dim value As Object
instance.SelectedValue = value
value = instance.SelectedValue
public object SelectedValue {get; set;}
Property Value
The value of the selected item.
For more information and examples on selecting data, refer to the
Selecting Data topic.
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