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

Shortcuts for XPToolbar

Thread ID:





6121 Jul 31,2003 08:10 PM UTC Aug 4,2003 04:29 PM UTC WinForms 2
Tags: Tools
Administrator [Syncfusion]
Asked On July 31, 2003 08:10 PM UTC

Hi, I have an MDI application. In some of my child windows, I have XPToolbar at the top of my child window. It has some buttons (BarItems) like Find, Print etc. I have set the findBarItem.Shortcut = ShortCut.CtrlF. It is not invoking my findBarItem Click handler? Is there any way to get this to work? thanks, - Reddy

Ramesh Praveen [Syncfusion]
Replied On August 1, 2003 05:43 PM UTC

Reddy, You could do this: 1) Override ProcessCmdKey in the parent control of the XPToolBar. If the parent is a Panel then you will have to derive a custom class from Panel, override ProcessCmdKey and use that Panel. 2) In the ProcessCmdKey override, delegate the call to the corresponding XPToolBar's ProcessCmdKey and return that value. 3) The shortcuts will now work whenever the focus is within that Panel. Do let us know if this works and if you need more assistance. Regards, Praveen

Administrator [Syncfusion]
Replied On August 4, 2003 04:29 PM UTC

Praveen, My control is derived from User control. It worked after I have overridden the ProcessCmdKey() method. thanks, - Reddy


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.

Please sign in to access our forum

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

Live Chat Icon For mobile
Live Chat Icon