Click here to get back home

How to use or override the hardkeys (talk key, end key and so on)?

 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
How to use or override the hardkeys (talk key, end key and so on)? Webstar 12-19-2006
Get Chitika Premium
Posted by Webstar on December 19, 2006, 3:36 am
Please log in for more thread options
Hi, I'm writing an application for a windows mobile 5.0 smartphone.

I wonder if it is possible to reconfigure the talk, end, home and back key
in managed code (with C#). I already tried to capture the F3 and F4 keys in
the eventhandler for the KeyDown-event, but that didn't work. Is there a
possibility to enable them?

I already searched in this Discussion Group, but couldn't find answers.
Please help!

Thanks in advance, Markus.

Posted by Fabien on December 20, 2006, 3:57 pm
Please log in for more thread options
Hi,

Did you set the property KeyPreview of your Form to true?

BR


Fabien Decret
Windows Embedded Consultant

ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/

Webstar a =E9crit :

> Hi, I'm writing an application for a windows mobile 5.0 smartphone.
>
> I wonder if it is possible to reconfigure the talk, end, home and back key
> in managed code (with C#). I already tried to capture the F3 and F4 keys =
in
> the eventhandler for the KeyDown-event, but that didn't work. Is there a
> possibility to enable them?
>
> I already searched in this Discussion Group, but couldn't find answers.
> Please help!
>=20
> Thanks in advance, Markus.


Posted by Webstar on December 21, 2006, 4:00 am
Please log in for more thread options
Hi, thanks for your answer.

KeyPreview is true, also tried it with false, I tried capturing the
KeyDown-Event in the form aswell as in the Control-Object which lies in the
form. It seems as if the system is blocking the handling of this Key-Events.
Has anybody an idea?

"Fabien" wrote:

> Hi,
>
> Did you set the property KeyPreview of your Form to true?
>
> BR
>
>
> Fabien Decret
> Windows Embedded Consultant
>
> ADENEO (ADESET)
> http://www.adeneo.adetelgroup.com/
>
> Webstar a icrit :
>
> > Hi, I'm writing an application for a windows mobile 5.0 smartphone.
> >
> > I wonder if it is possible to reconfigure the talk, end, home and back key
> > in managed code (with C#). I already tried to capture the F3 and F4 keys in
> > the eventhandler for the KeyDown-event, but that didn't work. Is there a
> > possibility to enable them?
> >
> > I already searched in this Discussion Group, but couldn't find answers.
> > Please help!
> >
> > Thanks in advance, Markus.
>
>

Posted by Amit on January 4, 2007, 4:39 am
Please log in for more thread options
Hi,

Talk,end etc are known as HotKeys.To get the notification,when one of them
has been pressed, to your application you would need to use RegisterHotKey()
and handle WM_HOTKEY message.Don't forget to use UnregisterHotKey() once you
are done.
Note: do some googling and you would find code sample on how to use it in C#

Hope it helps
--
Thanks and Regards
Amit
blog:http://amitranjan.wordpress.com


"Webstar" wrote:

> Hi, I'm writing an application for a windows mobile 5.0 smartphone.
>
> I wonder if it is possible to reconfigure the talk, end, home and back key
> in managed code (with C#). I already tried to capture the F3 and F4 keys in
> the eventhandler for the KeyDown-event, but that didn't work. Is there a
> possibility to enable them?
>
> I already searched in this Discussion Group, but couldn't find answers.
> Please help!
>
> Thanks in advance, Markus.

Similar ThreadsPosted
how to handle talk and end talk key on smartphone in evc4? February 7, 2007, 9:09 am
Override back key April 20, 2006, 11:50 am
acess the talk button November 24, 2006, 2:57 pm
Override "Back"-Key on Smartphone (VB.NET) June 29, 2005, 12:39 am
Can’t override BACK key with Class Specified March 1, 2006, 7:32 pm
Override Back Key WM5 Smartphone December 13, 2006, 2:26 pm
Customize the behavor of Talk and End buttons June 8, 2006, 4:44 am
How to stop talk/call key functionality? March 18, 2008, 10:03 am
Override BACK key in non-dialog window March 2, 2006, 9:12 am
How did I configure Windows Mobile 5 to talk to a OMA DM Server October 24, 2007, 8:07 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap