Turn on Display

  • Thread starter Thread starter kevininstructor
  • Start date Start date
K

kevininstructor

Hello all,

In VB.NET how does one turn on the display?
Example: When the PDA is off and is turned on when an appointment alert pops
up.

Thanks for any insight,
Kevin
 
There are two parts to it. First, you need to wake the device up. That is
done usually by calling CeRunAppAtTime to schedule your app to execute at
some later time. When the device is woken up (or if it never went to standby
but simply turned the screen off), you can switch the display on by calling
ExtEscape with SETPOWERMANAGEMENT as a parameter. All of this requires
P/Invoke. I have a C# sample. It should not be terribly hard to translate it
to VB

http://www.alexfeinman.com/download.asp?doc=DisplayOff.zip
 
Alex,

I did find your C# code before writing this question but was hoping for
something in VB.NET, don't have time to translate right now beings things
move to quickly in my shop.

Thanks again,
Kevin
 
Back
Top