Screen brightness.

  • Thread starter Thread starter Mark Bath
  • Start date Start date
M

Mark Bath

How can I retreive info on the screen brighness and adjust it (ideally using
a scrollbar)?
Is there something in OpenNetCF that I'm just missing.

-M.
 
Sergey,

Thanks for that. It's great when people have a ready made example.

However.
I've found that the registry key I'm needing to change is in fact:
key.SetValue("DCBrightness", trackBar1.Value);

The trouble is, when using the slide bar it does change the right value in
the registry, but doesn't affect the brighness on the screen until I go into
the START>SETTINGS>BACKLIGHT and tap on the slide bar they have in there.

So a question: Is there a system event other than "SDKBackLightChangeEvent"
that I need to be using?



-M.
 
It's an Intermec 730 that I'm using (so has both "DCBrightness" and
"ACBrighness" as well as "Brightness").

The changing it to "BackLightChangeEvent" worked fine.

Thanks again for all your assistance and especially for the demo code.

-M.
 
With Intermec 730 you can't use this regedit settings. You have to use
itc50.h (itc50.dll) file and call funtion called:
HRESULT
ITCSetScreenBrightness(
DWORD dwBrightness // IN: Range = { 1 -
ITCGetMaxScreenBrightness() }
);

where dwBrightness range is 1 to 5.

I hope it helps you, regards!

José Miguel Torres
 
Back
Top