There are many articles on how to disable monitors in C #, but they all turned off all monitors. Is there a way to turn off a specific monitor?
Several studies have brought me here:
http://www.codeguru.com/forum/showthread.php?p=1011720#post1011720
Do you know how to call such a function in C #?
- Change
Looks like this guy did everything for you:
http://www.codeproject.com/KB/dotnet/Display_Settings.aspx
To call Win32 Functions not displayed in the .NET Framework PInvoke.net is a good resource.
, , . . , " #" .
Given that the monitor belongs to the user and not to you, why do you want to disable it.
This is just what I think the OS should protect me from when the application tries to do this, so expect problems ...
Source: https://habr.com/ru/post/1715703/More articles:HashCodeBuilder in C ++ - javaHow to check the result of a filename extension in bash? - bashStop SQL Server 2005 Recovery Index - sql-server-2005Why does Visual Studio launch hotkeys of my other programs? - visual-studio-2008Store GNU files in other places - linuxФорматирование цитат и пакет hyperref - formattingСкорость С# serialPort - performanceIs it possible to use a record as a record element - erlangInitializing System.Array? - .netUsing Linq to query a linked server in Visual Studio - sql-serverAll Articles