Hi all,

I have a stopwatch project in VS2003 targeting a Pocket PC 2003 device
(which has cf 1.0 SP3 in ROM)

Is there any way I can utilise the hardware buttons on the device for user
input?

I know this has been asked before, and I do apologise, however, I've googled
extensively, but can only find native code or new examples for the v2.0
framework (which presumably need VS2005??)

What is the easiest way for me to achieve this?

Ideally I would like the user to be able to choose a key to use also.

Regards

Neil.

Re: Hardware button events by Neil

Neil
Thu Feb 02 03:26:19 CST 2006

Neil Wallace wrote:
> Hi all,
> I have a stopwatch project in VS2003 targeting a Pocket PC 2003 device
> (which has cf 1.0 SP3 in ROM)
> Is there any way I can utilise the hardware buttons on the device for
> user input?
> I know this has been asked before, and I do apologise, however, I've
> googled extensively, but can only find native code or new examples
> for the v2.0 framework (which presumably need VS2005??)
> What is the easiest way for me to achieve this?
> Ideally I would like the user to be able to choose a key to use also.


OK so I think I have just 2 choices.
1. upgrade to VS2005 and target the cf2.0.
2. get jiggy with the API using unmanaged C++ tools

Fxxxing hell.

Why is nothing ever easy?




Re: Hardware button events by Ginny

Ginny
Thu Feb 02 06:44:53 CST 2006

Neil,

I certainly don't want to talk you out of upgrading to VS 2005 since it and
CF 2 are major improvements over the older versions. But here is a nice
article by Chung Webster on designing user interfaces for Smartphone using
VS 2003 that illustrates using the OnKeyDown event among other things:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/grfCraftingSmartphoneUserInterfacesUsingNETCompactFramework.asp

--
Ginny Caughey
.NET Compact Framework MVP


"Neil Wallace" <rowing.golfer@*NOPSAM*virgin.net> wrote in message
news:%ekEf.864$Dn4.307@newsfe3-gui.ntli.net...
> Neil Wallace wrote:
>> Hi all,
>> I have a stopwatch project in VS2003 targeting a Pocket PC 2003 device
>> (which has cf 1.0 SP3 in ROM)
>> Is there any way I can utilise the hardware buttons on the device for
>> user input?
>> I know this has been asked before, and I do apologise, however, I've
>> googled extensively, but can only find native code or new examples
>> for the v2.0 framework (which presumably need VS2005??)
>> What is the easiest way for me to achieve this?
>> Ideally I would like the user to be able to choose a key to use also.
>
>
> OK so I think I have just 2 choices.
> 1. upgrade to VS2005 and target the cf2.0.
> 2. get jiggy with the API using unmanaged C++ tools
>
> Fxxxing hell.
>
> Why is nothing ever easy?
>
>
>



Re: Hardware button events by Neil

Neil
Thu Feb 02 11:21:30 CST 2006

Ginny Caughey [MVP] wrote:
> Neil,
>
> I certainly don't want to talk you out of upgrading to VS 2005 since
> it and CF 2 are major improvements over the older versions. But here
> is a nice article by Chung Webster on designing user interfaces for
> Smartphone using VS 2003 that illustrates using the OnKeyDown event
> among other things:
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/grfCraftingSmartphoneUserInterfacesUsingNETCompactFramework.asp
>


Thanks Ginny,

meantime I've had some success by using this article
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/PInvokeLib.asp

The test classes include "input" which tests the hardware keys.



Re: Hardware button events by Ginny

Ginny
Thu Feb 02 11:49:35 CST 2006

Neil,

I'd forgotten about that article. That is a good one.

--
Ginny Caughey
.NET Compact Framework MVP


"Neil Wallace" <rowing.golfer@*NOPSAM*virgin.net> wrote in message
news:ucrEf.1680$Fy4.20@newsfe4-win.ntli.net...
> Ginny Caughey [MVP] wrote:
>> Neil,
>>
>> I certainly don't want to talk you out of upgrading to VS 2005 since
>> it and CF 2 are major improvements over the older versions. But here
>> is a nice article by Chung Webster on designing user interfaces for
>> Smartphone using VS 2003 that illustrates using the OnKeyDown event
>> among other things:
>> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/grfCraftingSmartphoneUserInterfacesUsingNETCompactFramework.asp
>>
>
>
> Thanks Ginny,
>
> meantime I've had some success by using this article
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/PInvokeLib.asp
>
> The test classes include "input" which tests the hardware keys.
>
>