当我从我的应用程序运行另一个 .exe 文件时,它会在后台启动并不会显示在屏幕顶部的应用程序,而是显示平板模式主屏幕。 此功能在普通桌面模式下工作正常,但在 Windows 10 平板模式下运行时,它不会显示在屏幕顶部,而是在后台启动。
我已经使用了
用于启动 exe 文件的代码:
我已经使用了
myWindow.TopMost = true;
,但在 Windows 10 平板模式下没有按预期工作。用于启动 exe 文件的代码:
Process p = new Process();
p.StartInfo.RedirectStandardOutput= true;
p.RedirectStandardInput = true;
p = Process.Start("myApp.exe");
p.WaitForExit();
我正在启动的exe应用程序是我的自己的应用程序(不是系统应用程序),我在Windows 10上运行该应用程序。
只有在平板电脑模式下它才无法正常工作(而且我仅针对平板电脑定位我的应用程序)。
任何帮助都将不胜感激..!
TopMost = true
将无法帮助你。 - mihai