Programming Hard/Soft Keys with C# in Mobile 5 Question

N

Noble

Does anyone have any example C# code for programming one of the
hardware keys (or are the called softkeys?) in Windows Mobile 5? I
want to program two of the keys to open different Windows in my
program.

Thanks in advance,
nb
 
D

Daniel Moth

If you are talking about Soft Keys, then they just map onto the MainMenu
control and its menu items.

For qwerty keyboards, simply handle the KeyDown/Up/Press events from the
control of interest.

For dedicated hardware keys (not on the qwerty) use the
Microsoft.WindowsCE.Forms.HardwareButton class in the
Microsoft.WindowsCE.Forms.dll assembly part of NETCF v2.0 and higher.

Searching for the terms above as appropriate will give you good results.

Cheers
Daniel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top