I am writing a program in C# to turn off my monitors and I need a little help. I have got code to detect how many monitors are connected and the form displays a list for each monitor. I'm aware that windows does have some functions to turn off all monitors, but I'd like to turn on/off the selected monitor only. I'm running Windows 10 using the latest C# API.
Anyone know of some places I could start?
Edit: I see some people have commented some pages below, however I tested the code and it does not work.