Click here to Skip to main content
15,879,004 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
ToolStrip in the TextBox control, can add a shortcut way to do this?
Posted
Comments
DaveAuld 22-May-10 2:52am    
You are going to have to expand and/or rephrase, doesn't make alot of sense the question.
radix3 22-May-10 3:23am    
what do you mean by that please explain in detail

1 solution

Generally when I want to add a shortcut key to a control that doesn't have the shortcut key property I do this:

- Add a Menu Strip to the form, with it's visibility to false
- Add a Menu Item to the Menu Strip with my desired shortcut key assigned
- In the menu item's click event call the event handler for the whatever you would have tied the shortcut key too

It's kind of a roundabout way to do it, but it works.

Hope this helps.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900