0

how to find monitor brightness Level in vb.net?
Change Display Screen Brightness.

Edited by zakn

2
Contributors
2
Replies
15
Views
1 Year
Discussion Span
Last Post by zakn
0

Hi

You can use WMI (Windows Management Instrumentation) to get the current brightness level and to also set it.

There is a great tool called WMI Code Creator that allows you to query and execute WMI methods and it also generates the code for you.

To find the current brightness level, using this tool ensure you are on the "Query for data from a WMI class" tab and then select "root\wmi" from the namespace dropdown and "WmiMonitorBrightness" from the Classes dropdown, you will then have access to the CurrentBrightness property. You can then Execute the code that is generated or copy it. You can also change the target language from the "Code Language" menu.

To set the brightness, switch to the tab "Execute a method" and use the WmiMonitorBrightnessMethods class in the root\wmi namespace which contains a method called WmiSetBrightness.

HTH

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.