
05-09-2005, 11:07 AM
|
|
Developer & Designer, News Editor Emeritus
Join Date: Aug 2006
Posts: 12,959
|
|
Quote:
|
Originally Posted by Prashant Rana
Yes, I am trying to set it outside of the presets, that too programmatically.
|
This isn't something you need to program. It's a registry setting.
Navigate to HKCU\ControlPanel\Backlight and there you will see two values: ACTimeout and BatteryTimeout. Those two control the backlight timeout value when the Pocket PC is running off AC and the battery respectively.
Simply change the decimal value to the number of your choice. It works off seconds, so for example, if you want your battery timeout to be 15 seconds, set the decimal value of BatteryTimeout to 15.
Now if you wanted to create a mini-program to do this without having to delve into the registry, then that's another idea. You'd only need to create a couple of fields and have it linked to these particular values in the registry.
|
| |
|
|
|