'Declaration Public Property SelectedButton As TBarButton
public TBarButton SelectedButton {get; set;}
Setting this property also sets the button's Selected property to the proper value. The formerly selected button will have its Selected set to false, while the newly selected button will have its Selected set to true.
If the button is already a member of a button group, then an application may alternately assign a value to the desired button's Selected directly. It is not necessary for an application to set both Selected and SelectedButton.
The selected button of the group remains unchanged, if the TBarButton instance assigned to this property is not a member of this group. Membership is determined by reference equality, therefore if the application holds a cloned button instance, it may not be treated as a member of the group (developers should remove the button, by it's Key, from the Buttons collection and then re-insert their cloned button instance to the collection).
Target Platforms: Windows 10, Windows 8.1, Windows 8, 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