How to disable * multi display * in C #?

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?

+3
source share
3 answers

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

+4
source

To call Win32 Functions not displayed in the .NET Framework PInvoke.net is a good resource.

, , . . , " #" .

+1

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 ...

-1
source

Source: https://habr.com/ru/post/1715703/


All Articles