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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to define custom shortcuts for BarItem?

Platform: WinForms |
Control: XPToolbar |
Published Date: September 13, 2017 |
Last Revised Date: September 13, 2017 |
.NET Framework: 4
Tags: shortcut

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
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

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