Category / Section
How to set the shortcut keys for form elements in WinForms RibbonControlAdv?
1 min read
Shortcut keys
The SetShortcut method gets or sets the shortcut keys for easy access through the keyboard.
C#
this.SetShortcut(this.toolStripTabItem1,((System.Windows.Forms.Keys) (((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift) | System.Windows.Forms.Keys.T);
VB
Me.SetShortcut(Me.ToolStripTabItem1, CType(((System.Windows.Forms.Keys.Control or System.Windows.Forms.Keys.Shift) _ or System.Windows.Forms.Keys.T), System.Windows.Forms.Keys))