all groups > dotnet compact framework > may 2007 >
You're in the

dotnet compact framework

group:

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


Programming Hard/Soft Keys with C# in Mobile 5 Question Noble
5/13/2007 10:23:37 AM
dotnet compact framework:
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
Re: Programming Hard/Soft Keys with C# in Mobile 5 Question Daniel Moth
5/14/2007 12:58:31 AM
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
--
http://www.danielmoth.com/Blog

[quoted text, click to view]
AddThis Social Bookmark Button