How do I adjust the screen brightness in C#?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Look at the SetDeviceGammaRamp API function. There’s a CodeProject article that describes using it from C# here: Setting Screen Brightness in C#
Be aware that your graphics card has to support this though, I’d assume that most modern ones do, but I don’t know.
Edit: Since the CodeProject article seems to be down, another place to find out how to call it from C# is on the pInvoke site.