我正在尝试执行一个长时间运行的 Process.Start(),并在进程执行时在屏幕上显示一个圆形进度条。
我有以下代码:
Process p =
Process.Start(longRunningProcess);
// show the circular progress bar;
ShowHideCirProgBar(true);
// wait till the process ends execution
p.WaitForExit();
// hide the circular progress bar
ShowHideCirProgBar(false);
我对线程模型不熟悉,不确定如何实现上述内容。非常感谢您的任何帮助。
谢谢, PJ