|
Posted by Peter Foot on June 19, 2008, 5:46 am
Please log in for more thread options The Keys.End is the keyboard key (Home, End, Page Up, Page Down) and not the
hangup button. The design guidelines do not permit overriding the phone
greenred keys as they are expected to always perform standard functions.
However you can capture an event for the key using RegisterHotKey (the key
values for these mobile specific keys are defined in winuserm.h). I think
for Smartphone / Standard edition you are expected to use SHCMBM_OVERRIDEKEY
menu to the softkey bar to override these buttons (see the SDK documentation
for details).
Peter
--
Peter Foot
Microsoft Device Application Development MVP
peterfoot.net | appamundi.com | inthehand.com
APPA Mundi Ltd - Software Solutions for a Mobile World
In The Hand Ltd - .NET Components for Mobility
> Assuming you want to do this at the form level, you could set your form's
> KeyPreview property to True and then put something like the following in
> the form's KeyDown or similar event:
>
> if (e.KeyCode == Keys.End)
> ...
>
> Jeff Hopper
> Hopper Consulting, Inc.
>
> -----Original Message-----
> From: Sanniv [mailto:Sanniv@discussions.microsoft.com]
> Posted At: Wednesday, June 18, 2008 9:45 AM
> Posted To: microsoft.public.smartphone.developer
> Conversation: Capture END key in smartphone using C#
> Subject: Capture END key in smartphone using C#
>
> I need to capture End key in smartphone and I am developing app using C#.
> Is there any way to do this?
>
> Regards,
> Sanniv
>
|