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

  • Thread starter Thread starter Noble
  • Start date Start date
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
 
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
 
Back
Top