We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to define custom shortcuts for BarItem?

In XPToolBar, user can define set of pre-defined Short cut keys to its child items like Control, Shift etc. and it will help to select child items programmatically, when defined Key is pressed.

But there is no option to provide custom key combinations and it can be achieved by handling KeyDown event and using PerformClick function.

For Example

Here we have created an example for Control + Key Up / Key Down key combinations.

The following Code sample demonstrates the same.

C#

 

VB

 

Screenshot

 

Sample Links

  1. Custom Shortcuts for BarItem- C#
  2. Custom Shortcuts for BarItem - VB
Article ID: Published Date: Last Revised Date: Platform: Control: .NET Framework:
7984 09/13/2017 09/13/2017 WinForms XPToolbar 4
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon