Click here to Skip to main content
15,921,959 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I'm programming on HTC touch 2 Dual ( WM 6.5) a standalone .Net application. Is there anyway (via registry or programmatically, C#) to block/disable the action of the hardware button HOME that make go out my app?

I tested:

- onKeyUp event e keyPreview = TRUE

- keyboard hooking

and I managed to disable all the other buttons (volume, windows button, etc.) but I couldn't disable the HOME BUTTON and the suspension button.


Thanks very much in advance for all the useful suggestions,
Fran
Posted
Updated 7-Dec-10 0:07am
v2

1 solution

Not as far as I can tell. It's like trying to block Ctrl-Alt-Del on a PC. You can't do it.
 
Share this answer
 
Comments
FrancescoAton 7-Dec-10 17:11pm    
Ok, via software it could be impossible but I think strange that there aren't any keys in the registry of the the OS to ri-associate/or to disable the action of that button.

anyway Thanks Dave

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