Click here to get back home

Capture END key in smartphone using C#

 HomeNewsGroups | Search | About
 microsoft.public.smartphone.developer    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Capture END key in smartphone using C# Sanniv 06-18-2008
Posted by Sanniv on June 18, 2008, 9:45 am
Please log in for more thread options
I need to capture End key in smartphone and I am developing app using C#.
Is there any way to do this?

Regards,
Sanniv

Posted by Jeff Hopper on June 18, 2008, 11:38 am
Please log in for more thread options
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


Posted by Sanniv on June 19, 2008, 12:08 am
Please log in for more thread options
Hello Jeff

Thanks for your reply.
I already did this and didn't get the required result. Have you tested that?
By the way I got to know that we can capture HOME key of smartphone using
C#, it is explained in this link:
http://blog.opennetcf.com/ayakhnin/PermaLink,guid,6f3656ec-b669-4a23-987a-a2455fbd2fc4.aspx

But I need to capture END Key (Red key). How to capture this.....

Regards,
Sanniv

"Jeff Hopper" wrote:

> 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
>
>

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
>


Similar ThreadsPosted
Smartphone. Capture sound during call May 18, 2006, 8:49 am
How to capture SMS on windows mobile 5.0 smartphone ? August 10, 2006, 6:23 am
No way to create a Video Capture app.for a Windows 2003 Smartphone October 22, 2005, 8:14 pm
How to capture notification data? April 16, 2006, 9:45 pm
DirectShow audio capture December 13, 2006, 7:28 am
does anyone know photo frame capture mode in WM5? October 8, 2005, 8:20 pm
Audio Capture In Windows Mobile January 16, 2006, 6:32 am
About 'Capture Device Selection' in DirectShow February 7, 2006, 4:34 am
modifying video capture properties February 28, 2006, 1:15 pm
WM 5.0 DirectShow - How to set the best quality for image capture? March 28, 2006, 1:40 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap