Version

UseMnemonic Property (UltraGroupBox)

Gets/sets a bool indicating if the first character preceded by an ampersand will be treated as the control's mnemonic key.
Syntax
'Declaration
 
Public Property UseMnemonic As Boolean
public bool UseMnemonic {get; set;}
Remarks

Providing a mnemonic key for the control can make it easier for the end-user to quickly navigate an application's user interface. When the mnemonic key of an UltraGroupBox is pressed the first activate-able child control with the lowest TabIndex will be activated.

Example
This snippet shows how to make use of the UseMnemonic property of the control.

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    ' Make the control's caption "Research & Development" with a slash under the 'R'.
    ' When the user hits Alt+R, the first child control in the tab order of the UltraGroupBox 
    ' will be activated.
    '
    Me.UltraGroupBox1.Text = "&Research && Development"
    Me.UltraGroupBox1.UseMnemonic = True

    ' Make the control's caption "Products" with a slash under the 'P'.
    ' When the user hits Alt+P, the UltraExpandableGroupBox's expanded 
    ' state will toggle and it will be activated.
    '
    Me.UltraExpandableGroupBox1.Text = "&Products"
    Me.UltraExpandableGroupBox1.UseMnemonic = True

End Sub
private void Form1_Load(object sender, System.EventArgs e)
{
	// Make the control's caption "Research & Development" with a slash under the 'R'.
	// When the user hits Alt+R, the first child control in the tab order of the UltraGroupBox 
	// will be activated.
	//
	this.ultraGroupBox1.Text = "&Research && Development";
	this.ultraGroupBox1.UseMnemonic = true;

	// Make the control's caption "Products" with a slash under the 'P'.
	// When the user hits Alt+P, the UltraExpandableGroupBox's expanded 
	// state will toggle and it will be activated.
	//
	this.ultraExpandableGroupBox1.Text = "&Products";
	this.ultraExpandableGroupBox1.UseMnemonic = true;
}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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

See Also