Articles in this section
Category / Section

How to specify a shortcut to the BarItem's which is not available in the Shortcut enum in WinForms XPToolBar?

1 min read

Shortcut

The Shortcut property is used to set the shortcuts. Please refer the below code snippet which illustrates this:

C#

this.parentBarItem1.Shortcut = (Shortcut)(Keys.Alt | Keys.Left);

VB

Me.parentBarItem2.Shortcut = CType(Keys.Alt Or Keys.Left, Shortcut)

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied