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.
Unfortunately, activation email could not send to your email. Please try again.

Catch shortcut keypress of XPToolBar item

Thread ID:





61650 May 30,2007 11:28 AM May 30,2007 11:54 AM Windows Forms 1
Tags: Tools
Oleg Ogurok
Asked On May 30, 2007 11:28 AM

Hi there,

Is there an event raised when a keyboard shortcut is pressed on a XPToolBar item? I tried KeyPress or Click but it didn't work.

this.barItem1.ID = "Test here";
this.barItem1.Shortcut = System.Windows.Forms.Shortcut.CtrlE;
this.barItem1.Text = "Test here";

Oleg Ogurok
Replied On May 30, 2007 11:54 AM

Nevermind, I needed to attach a Click event handler to the item itself rather than the toolbar.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

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.