Pocket PC 4.20 Backlight

  • Thread starter Thread starter Crysal
  • Start date Start date
C

Crysal

Hi, I try to change the brightness of the Pocket PC with the .NET
Compact Framework 2.0. But nothing works. Anybody ideas? Thx Thorsten
 
The implementation of brightness is hardware specific. Generally you have to
modify a registry setting and then communicate with the system to refresh,
either via a WM_SETTINGCHANGED message or by signalling a named event (often
SDKBackLightChangeEvent or BacklightChangeEvent)

Peter
 
Thanks, this is my code:

RegistryKey parent_rk =
Registry.CurrentUser.OpenSubKey("ControlPanel");
RegistryKey child_rk = parent_rk.OpenSubKey("BackLight");

There ist a "dword value" called "Brightness", but its not included in
the child_rk-object.
How can I modify the dword now.

Sorry for my bad english ...
 
You can retrieve a value from a RegistryKey using the GetValue method e.g.
int brightness = (int)child_rk.GetValue("Brightness");

Peter
 
Thanks Peter, it runs.
I must implement an Event-Class too, this class handles the event for
the modify.


Thorsten
 
Back
Top