Key pressed
-
Hello every body. My project is C# project on VS2005 .net How can I catch a key pressed but not like event for a Form , tabControl and other component, for all program.For exapmle: If my program is started and is pressed keys like F1,F2,F3... and etc. I want to make some function on this Keys pressed. Thanks for all in advance.
-
Hello every body. My project is C# project on VS2005 .net How can I catch a key pressed but not like event for a Form , tabControl and other component, for all program.For exapmle: If my program is started and is pressed keys like F1,F2,F3... and etc. I want to make some function on this Keys pressed. Thanks for all in advance.
t_nedelchev wrote:
How can I catch a key pressed but not like event for a Form
What do you mean?
only two letters away from being an asset
-
Hello every body. My project is C# project on VS2005 .net How can I catch a key pressed but not like event for a Form , tabControl and other component, for all program.For exapmle: If my program is started and is pressed keys like F1,F2,F3... and etc. I want to make some function on this Keys pressed. Thanks for all in advance.
:confused::confused:
Best Regards ----------------- Abhijit Jana View My Latest Article :- SpyNet : Your Network Spy "Success is Journey it's not a destination"
-
t_nedelchev wrote:
How can I catch a key pressed but not like event for a Form
What do you mean?
only two letters away from being an asset
-
Hello every body. My project is C# project on VS2005 .net How can I catch a key pressed but not like event for a Form , tabControl and other component, for all program.For exapmle: If my program is started and is pressed keys like F1,F2,F3... and etc. I want to make some function on this Keys pressed. Thanks for all in advance.
Hi, yes you can create system-wide hotkeys. My Code Rescue article[^] uses them (but does not mention it in the article itself). There is some P/Invoke involved, calling Win32 functions. :)
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips: - before you ask a question here, search CodeProject, then Google; - the quality and detail of your question reflects on the effectiveness of the help you are likely to get; - use PRE tags to preserve formatting when showing multi-line code snippets.