Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/335.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C#-不使用鼠标等待光标加载外部.exe_C#_Winforms_Windows 10_Threadpool - Fatal编程技术网

C#-不使用鼠标等待光标加载外部.exe

C#-不使用鼠标等待光标加载外部.exe,c#,winforms,windows-10,threadpool,C#,Winforms,Windows 10,Threadpool,从WinForms应用程序中,我正在初始化一个外部(第三方)可执行文件,希望此加载被隐藏 我正在使用一个Task.Run()=>进程。开始初始化进程,但即使在后台线程(使用线程池)中,鼠标光标仍停留在WaitIcon上。我相信这是因为应用程序加载,Windows正在管理它,而不是我的应用程序线程 //I don't even need to await, just start but without the cursor get with WaitIcon Task.Run(() =>

从WinForms应用程序中,我正在初始化一个外部(第三方)可执行文件,希望此加载被隐藏

我正在使用一个Task.Run()=>进程。开始初始化进程,但即使在后台线程(使用线程池)中,鼠标光标仍停留在WaitIcon上。我相信这是因为应用程序加载,Windows正在管理它,而不是我的应用程序线程

//I don't even need to await, just start but without the cursor get with WaitIcon

Task.Run(() => System.Diagnostics.Process.Start("ExternalApp.exe"));

在外部可执行文件加载过程中,是否有任何简单的方法可以干预此过程,使光标保持为默认值?

如果您给我们提供代码来使用,总是会使它变得更容易。Hi@LarsTech,是吗。不是System.Diagnostics命名空间中的进程?是的。我更正了。如果你给我们代码来使用,总是会让我们更容易。Hi@LarsTech,是吗。进程不在系统中。诊断命名空间?是的。我纠正了。