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. Image for the cookie policy date

Catch shortcut keypress of XPToolBar item

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";

1 Reply

OO Oleg Ogurok May 30, 2007 03:54 PM UTC

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

Loader.
Live Chat Icon For mobile
Up arrow icon