|
-
Mar 26th, 2007, 08:11 PM
#1
Thread Starter
Junior Member
[2005][Resolved] Toolstrip shortcut help
I have a toolstrip in my form. When I press enter I want it to press a button in the toolstrip. I want the key pressed to be enter.
Thank you,
Adam
Last edited by admeech29; Mar 26th, 2007 at 08:37 PM.
-
Mar 26th, 2007, 08:22 PM
#2
Re: [2005] Toolstrip shortcut help
Set the form's KeyPreview property to True, handle the KeyDown event, test e.KeyCode for the Enter key, set e.SuppressKeyPress to True and call the ToolStripButton's PerformClick method.
-
Mar 26th, 2007, 08:29 PM
#3
Thread Starter
Junior Member
Re: [2005] Toolstrip shortcut help
I resolved it.
Thank you,
Adam
Last edited by admeech29; Mar 26th, 2007 at 08:36 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|