Click here to Skip to main content
15,894,539 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am creating a project using C# .net 2008 and sql server 2005. In my application I am using mouse clicks for printing, moves to net location, inserting etc.. Instead of using mouse clicks I want to use keyboard keys for the above functions. How can I implement them in code? Please give me a solution.
Posted
Updated 21-Nov-10 20:14pm
v2

1 solution

Use MenuStrip control and create menus for your options and give shortcut keys as like you want..

or else use Form - KeyUp/KeyPress event(s) and get key code or key value to do it manuly.

Note: if you go for second option check wether you are enabled true the Form Property KeyPreview = true
 
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