How to use hardware buttons on PDA in application with VB

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a simple program that has a start and stop buttons. I want the user to be able to use the buttons on the PDA front to activate the start and stop buttons. I'm having a hard time finding info on how to recieve button push notifications and how to tie these to the start and stop buttons of my application. Any help is very much appreciated. I'm using VB for the .net compact framework.
 
You should take a look at the new P/Invoke article on MSDN:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/PInvokeLib.asp.
It contains a sample of handling the hardware buttons, see the Input section
in the article. The sample code is available to download.

--
Regards,

Maarten Struys, eMVP
PTS Software bv

MeatHanky said:
I have a simple program that has a start and stop buttons. I want the
user to be able to use the buttons on the PDA front to activate the start
and stop buttons. I'm having a hard time finding info on how to recieve
button push notifications and how to tie these to the start and stop buttons
of my application. Any help is very much appreciated. I'm using VB for the
..net compact framework.
 
I took a look at that sample. Unfortunately, I think it is beyond my level of programming at this time. I'm just beginner and it looked like a bunch of stuff that I've never seen before. Thanks for the pointer... I think that is what I was looking for, I'm simply too inept to handle it at this time.
 
To get familiar with some of these things you might want to check out these
articles as well:
http://smartdevices.microsoftdev.com/Learn/Articles/501.aspx. This article
explaines what P/Invoke is rather well. To get some relatively easy code
samples on various topics you should take a look here:
http://samples.gotdotnet.com/quickstart/compactframework/.

--
Regards,

Maarten Struys, eMVP
PTS Software bv

MeatHanky said:
I took a look at that sample. Unfortunately, I think it is beyond my
level of programming at this time. I'm just beginner and it looked like a
bunch of stuff that I've never seen before. Thanks for the pointer... I
think that is what I was looking for, I'm simply too inept to handle it at
this time.
 
Back
Top