Re: Detect a Laptop's On Battery

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Rick Rothstein (rickNOSPAMnews_at_NOSPAMcomcast.net)
Date: 06/05/04


Date: Sat, 5 Jun 2004 12:42:22 -0400


> You know a lot more than me

Don't make that assumption. My "expertise" (if we can call it that) is
limited to a relatively small subset of what is available in VB; you
(and many, many other individuals) may possess far more total VB
knowledge than I do.

> so I hope I don't seem stupid

Personally, I don't consider any seriously offered question or
suggestion as "stupid"... ever.

> but is it bad to put the API in a timer control and
> have it go off every once in a while and check then
> if the values have changed?

I don't see why something like that wouldn't work. It would avoid the
subclassing route (but at the expense of some small amount of system
resources I would guess).

> My idea is a little hard to work with IF it works, so it's probably
best just to use the control.

The control, once added to the project, might provide some additional
functionality which isn't provided for in the API call you cited that
the OP might find useful. Of course, we have no way of knowing that.<g>

Rick - MVP



Relevant Pages

  • New LottoGenius version - comments please.
    ... limit an amount of numbers inside any decade. ... Final Digits: matching final digits (all digits count, ... control the low/high numbers ratio within a combination. ... Sums: range of sums (selected numbers within the combination ...
    (rec.gambling.lottery)
  • Re: update value without rolling back to first record
    ... "expression" can recalculate the updated amount due. ... If your "expression" is just a text box control source ... So my problem is when I enter a value in the payment subform, ...
    (microsoft.public.access.formscoding)
  • Re: Creating auto loan database
    ... There is no "afterupdate" control. ... for the control into which you're entering the total amount. ... Customer form with Loan Payment subform. ...
    (microsoft.public.access.forms)
  • Re: Effects of Magic
    ... have been told with a different magical system. ... the other one has to volunteer their control. ... Amount of magic is more than the sum. ...
    (rec.arts.sf.composition)
  • Re: Need help w/ expression
    ... Not sure about the "forwarded running balance" yet. ... I am not sure if I understood the "calculated control" advice. ... that contain an expense. ...
    (microsoft.public.access.reports)