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.
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; }
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