PC Review


Reply
Thread Tools Rate Thread

Capturing Battery Status

 
 
Zahid
Guest
Posts: n/a
 
      10th Sep 2003
Hi,

Im new to PocketPC programming and have been using VB.Net
to develop a pocketPC application. I would appreciate it
if someone could assist me in capturing the battery
status (how much battery life is left) of the PocketPC so
that I can display it on my application. I have no idea
as to how to do this.

Any ideas?

Thanks in advance.
 
Reply With Quote
 
 
 
 
Neil Cowburn [MVP]
Guest
Posts: n/a
 
      10th Sep 2003
There are a couple of options open to you:

(1) Check out the BatteryLife control by Tim Wilson.
http://www.opennetcf.org/batterylife.asp
(2) P/Invoke the GetSystemPowerStatusEx API. See the Pocket PC SDK for more
information

HTH
Neil

--
Neil Cowburn
Microsoft Windows Embedded MVP


"Zahid" <(E-Mail Removed)> wrote in message
news:603701c3777c$9e94d570$(E-Mail Removed)...
> Hi,
>
> Im new to PocketPC programming and have been using VB.Net
> to develop a pocketPC application. I would appreciate it
> if someone could assist me in capturing the battery
> status (how much battery life is left) of the PocketPC so
> that I can display it on my application. I have no idea
> as to how to do this.
>
> Any ideas?
>
> Thanks in advance.



 
Reply With Quote
 
Zahid
Guest
Posts: n/a
 
      10th Sep 2003
Hi,

Thanks for your help Neil. How do you use the control
from Opennetcf? Im quite new to this new Visual Studio
and especially VB.Net.

Thank in advance.
>-----Original Message-----
>There are a couple of options open to you:
>
>(1) Check out the BatteryLife control by Tim Wilson.
>http://www.opennetcf.org/batterylife.asp
>(2) P/Invoke the GetSystemPowerStatusEx API. See the

Pocket PC SDK for more
>information
>
>HTH
>Neil
>
>--
> Neil Cowburn
> Microsoft Windows Embedded MVP
>
>
>"Zahid" <(E-Mail Removed)> wrote in message
>news:603701c3777c$9e94d570$(E-Mail Removed)...
>> Hi,
>>
>> Im new to PocketPC programming and have been using

VB.Net
>> to develop a pocketPC application. I would appreciate

it
>> if someone could assist me in capturing the battery
>> status (how much battery life is left) of the PocketPC

so
>> that I can display it on my application. I have no idea
>> as to how to do this.
>>
>> Any ideas?
>>
>> Thanks in advance.

>
>
>.
>

 
Reply With Quote
 
Maarten Struys
Guest
Posts: n/a
 
      10th Sep 2003
Did you download the control. There is a sample client app included in the
download. Even though it is in C# you probably can find out how to use the
control. If you have specific questions on the usage we'll try to help you.

--
Regards,

Maarten Struys
PTS Software bv

"Zahid" <(E-Mail Removed)> wrote in message
news:0c6f01c37787$18836360$(E-Mail Removed)...
> Hi,
>
> Thanks for your help Neil. How do you use the control
> from Opennetcf? Im quite new to this new Visual Studio
> and especially VB.Net.
>
> Thank in advance.
> >-----Original Message-----
> >There are a couple of options open to you:
> >
> >(1) Check out the BatteryLife control by Tim Wilson.
> >http://www.opennetcf.org/batterylife.asp
> >(2) P/Invoke the GetSystemPowerStatusEx API. See the

> Pocket PC SDK for more
> >information
> >
> >HTH
> >Neil
> >
> >--
> > Neil Cowburn
> > Microsoft Windows Embedded MVP
> >
> >
> >"Zahid" <(E-Mail Removed)> wrote in message
> >news:603701c3777c$9e94d570$(E-Mail Removed)...
> >> Hi,
> >>
> >> Im new to PocketPC programming and have been using

> VB.Net
> >> to develop a pocketPC application. I would appreciate

> it
> >> if someone could assist me in capturing the battery
> >> status (how much battery life is left) of the PocketPC

> so
> >> that I can display it on my application. I have no idea
> >> as to how to do this.
> >>
> >> Any ideas?
> >>
> >> Thanks in advance.

> >
> >
> >.
> >



 
Reply With Quote
 
Zahid
Guest
Posts: n/a
 
      11th Sep 2003
Hi,

Thanks for your help. I went through the sample
Application and now understand how to use the control.
What i didnt understand was the
"P/Invoke the GetSystemPowerStatusEx API" ...

Sorry but i am new to this kind of programming.

Thanks in advance.

>-----Original Message-----
>Did you download the control. There is a sample client

app included in the
>download. Even though it is in C# you probably can find

out how to use the
>control. If you have specific questions on the usage

we'll try to help you.
>
>--
>Regards,
>
>Maarten Struys
>PTS Software bv
>
>"Zahid" <(E-Mail Removed)> wrote in message
>news:0c6f01c37787$18836360$(E-Mail Removed)...
>> Hi,
>>
>> Thanks for your help Neil. How do you use the control
>> from Opennetcf? Im quite new to this new Visual Studio
>> and especially VB.Net.
>>
>> Thank in advance.
>> >-----Original Message-----
>> >There are a couple of options open to you:
>> >
>> >(1) Check out the BatteryLife control by Tim Wilson.
>> >http://www.opennetcf.org/batterylife.asp
>> >(2) P/Invoke the GetSystemPowerStatusEx API. See the

>> Pocket PC SDK for more
>> >information
>> >
>> >HTH
>> >Neil
>> >
>> >--
>> > Neil Cowburn
>> > Microsoft Windows Embedded MVP
>> >
>> >
>> >"Zahid" <(E-Mail Removed)> wrote in message
>> >news:603701c3777c$9e94d570$(E-Mail Removed)...
>> >> Hi,
>> >>
>> >> Im new to PocketPC programming and have been using

>> VB.Net
>> >> to develop a pocketPC application. I would

appreciate
>> it
>> >> if someone could assist me in capturing the battery
>> >> status (how much battery life is left) of the

PocketPC
>> so
>> >> that I can display it on my application. I have no

idea
>> >> as to how to do this.
>> >>
>> >> Any ideas?
>> >>
>> >> Thanks in advance.
>> >
>> >
>> >.
>> >

>
>
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Battery status marnix_moed Windows Vista General Discussion 5 25th Feb 2009 08:06 PM
Battery status Richard Microsoft Access 2 29th Nov 2007 01:09 PM
Battery Status Mex Microsoft Dot NET Compact Framework 4 5th Jul 2007 11:07 PM
See battery status Arnaldo Fuziy Microsoft Dot NET Compact Framework 10 14th Oct 2003 09:00 PM
Battery Status Jim Wilson [eMVP] Microsoft Dot NET Compact Framework 2 22nd Aug 2003 07:23 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:06 PM.