Minimized样式好像没有效果:
string logFilePath = @"c:\mylog.log";
ProcessStartInfo startInfo = new ProcessStartInfo(logFilePath) {WindowStyle = ProcessWindowStyle.Minimized};
Process.Start(startInfo);
谢谢。
最佳答案
Community Comments section WindowStyle Property 的 MSDN 页面说:
To use Hidden, you'll need UseShellExecute = true
To use Hidden, you'll need UseShellExecute = true among other things. These requirements should be noted in the documentation, but aren't.
你试过吗?也许它也适用于最小化。
关于C# - 使用最小化的记事本打开文本文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6257362/