spi*_*inz 6 c# winapi process fullscreen
我需要创建一个在全屏模式下启动新程序(例如记事本)的应用程序.我能用c#做吗?
我很感激代码示例.谢谢:)
SwD*_*n81 11
您可以使用Process.Start具有属性的ProcessStartInfo对象WindowStyle.您可以设置该属性,以便窗口最大化.
改编自以下示例Process.Start:
ProcessStartInfo startInfo = new ProcessStartInfo("notepad.exe");
startInfo.WindowStyle = ProcessWindowStyle.Maximized;
Process.Start(startInfo);
Run Code Online (Sandbox Code Playgroud)
如果该进程已在运行,请参阅此处