c# - Process.Start - 如何将启动的可执行文件发送到后面 (C#)

标签 c# .net windows winforms

是否有可能使使用 Process.Start 启动的进程启动并发送到“屏幕背面”,例如在屏幕上所有其他打开的窗口之后?

最佳答案

查看ProcessWindowStyle Enumeration对于可用选项:

an application may initialize a new window to the Hidden style while it customizes the window's appearance, and then make the window style Normal.

您可以在最小化状态下启动进程,例如:

ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName = "Myapplication.exe";
startInfo.WindowStyle = ProcessWindowStyle.Minimized; // or Hidden here
Process process = new Process();
process.StartInfo = startInfo;
process.Start();

关于c# - Process.Start - 如何将启动的可执行文件发送到后面 (C#),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6724644/

相关文章:

windows - Qt Creator 项目向导不显示创建 Qt 项目的选项

c# - 这是构建灵活实现的合理方法吗

c# - 在异步委托(delegate)中捕获异常

.net - asp.net 下拉菜单不显示 IE 中的所有文本,当文本太长时,其余文本会被 chop

.net - Windows 2008 服务器任务计划程序给出错误 0XC0000005

windows - 可以覆盖 CreateParams 过程让我仍然可以完全访问 WS_SYSMENU 吗?

c# - 如何摆脱作为主键的 guid 字段

c# - 在多个属性上调用 .Sum() 的有效方法

.net - 如何在WPF中制作模式对话框?

windows - Windows 10 中的 Spark 设置