SelectedControl Property
Description
Gets the currently selected control from the Ribbon Bar.
Property Type
Read-write property
Syntax (Visual Basic)
Public Property SelectedControl() As [CommandBarControl](XtremeCommandBars~CommandBarControl.md)
Remarks
The SelectedControl property will only contain a reference to a control while a control is selected. A control is selected when it has focus. For example, when the mouse pointer is positioned over a control or the menu is navigated with the Arrow keys.
The SelectedControl property is intended to be used with the CommandBarKeyDown event. This property allows you to determine which control has focus when a key is pressed. See the CommandBarKeyDown description for an example.
See Also

Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.