I noticed that I cannot define a button on a compact framework form as the
default button. Therefore, I cannot allow my end users to navigate through
my application using the keypad enter key.

Does anyone have a simple solution for this? I need to trap the message and
then trigger the button event. Triggering the button event I can handle, but
I have no idea how to trap the message! Is there a managed class I can use
for this?

Thank you in advance!
Paula

Re: Default button on a cf form by Ginny

Ginny
Tue Jul 05 09:11:14 CDT 2005

Paula,

Check out the ApplicationEx and IMessageFilter code on www.opennetcf.org.

Ginny Caughey
.NET Compact Framework MVP

"Paula" <Paula@discussions.microsoft.com> wrote in message
news:FD481964-90AA-48BA-9567-BC7A2C9EB475@microsoft.com...
>I noticed that I cannot define a button on a compact framework form as the
> default button. Therefore, I cannot allow my end users to navigate
> through
> my application using the keypad enter key.
>
> Does anyone have a simple solution for this? I need to trap the message
> and
> then trigger the button event. Triggering the button event I can handle,
> but
> I have no idea how to trap the message! Is there a managed class I can
> use
> for this?
>
> Thank you in advance!
> Paula



Re: Default button on a cf form by Paula

Paula
Tue Jul 05 13:05:03 CDT 2005

Thanks Ginny! Worked like a charm :)

"Ginny Caughey [MVP]" wrote:

> Paula,
>
> Check out the ApplicationEx and IMessageFilter code on www.opennetcf.org.
>
> Ginny Caughey
> ..NET Compact Framework MVP
>
> "Paula" <Paula@discussions.microsoft.com> wrote in message
> news:FD481964-90AA-48BA-9567-BC7A2C9EB475@microsoft.com...
> >I noticed that I cannot define a button on a compact framework form as the
> > default button. Therefore, I cannot allow my end users to navigate
> > through
> > my application using the keypad enter key.
> >
> > Does anyone have a simple solution for this? I need to trap the message
> > and
> > then trigger the button event. Triggering the button event I can handle,
> > but
> > I have no idea how to trap the message! Is there a managed class I can
> > use
> > for this?
> >
> > Thank you in advance!
> > Paula
>
>
>