Click here to Skip to main content
15,910,886 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
I want to change key of keyboard when i press a key. Example i press Page Up key so OS will change Home, that's mean i press Home key it will run Page Up command key.
Pls help me!
Posted

You want to do this system wide ? I doubt you can, in .NET. You want a low level system wide hook to do that.
 
Share this answer
 
When i run program, OS will understand what i define in my program. I can do that in all other program ex MS Word, Excel, ... and code design in Visual Studio.
 
Share this answer
 
Comments
Christian Graus 30-Jun-11 21:05pm    
Why does no-one understand the difference between 'answer' and 'comment' ? You can't do anything in Word that is OS wide, I am sorry. Nor does VS do that. But, it can be done. Probably in c++ tho.
Sergey Alexandrovich Kryukov 1-Jul-11 0:43am    
It's certainly should be the global hook set in unmanaged DLL. Microsoft documentation explicitly specify that. Any native-code compiler can do it. (Well, "real" compiler, not VB.)
--SA
Smithers-Jones 1-Jul-11 3:32am    
Even worse: It's not called an answer, but solution. If it would say answer, I could understand, why everybody clicks it to answer to a post before his or hers, but it clearly says solution, which this post from the OP isn't..

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