Assign a hardware key to an application from code

  • Thread starter Thread starter Ignacio Machin \( .NET/ C# MVP \)
  • Start date Start date
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,


I'm trying to assign one of the hardware keys to my program. What is the
best way of doing it?

Thanks in advance,
 
Hi Pete,

Thanks for the fast answer but it does not do what I want, the code
provided allow you to capture a key when your program is running, what I
need is a way to assign a hardware key to a program, so instead of calling
Calendar it calls my application. I think there is some hack in the registry
but I havent found a confirmed way of doing it.


Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
 
Hi Dan,

Thanks for the link, it pointed me in the right direction .


Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

Dan Ardelean said:
Have a look at:
http://www.pocketpcdn.com/articles/handle_hardware_keys2.html

Use OpenNETCF SDF for modifying the registry.

Ignacio Machin ( .NET/ C# MVP ) said:
Hi Pete,

Thanks for the fast answer but it does not do what I want, the code
provided allow you to capture a key when your program is running, what I
need is a way to assign a hardware key to a program, so instead of calling
Calendar it calls my application. I think there is some hack in the registry
but I havent found a confirmed way of doing it.


Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation



"Pete Vickers [eMVP]" <pete at gui - innovations dot com> wrote in message
Hi,
take a look at this thread on the opennetcf forum -
http://www.opennetcf.org/forums/topic.asp?TOPIC_ID=283&SearchTerms=hardware,key
Pete

--
Pete Vickers
Microsoft Windows Embedded MVP
HP Business Partner
http://www.gui-innovations.com

"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote
in message Hi,


I'm trying to assign one of the hardware keys to my program. What
is
the
best way of doing it?

Thanks in advance,
 
Back
Top