Basically, you can't change this programmatically, especially with a language like C#. If you want to do this with your own code, you would need to use low-level languages like C or C++. However, if it is possible through Windows settings or similar, you could write a C# code that modifies the necessary setting.