gpt4 book ai didi

C# - 使用最小化的记事本打开文本文件?

转载 作者:太空宇宙 更新时间:2023-11-03 14:17:28 24 4
gpt4 key购买 nike

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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com