开始一个过程...... [英] Start a process...
本文介绍了开始一个过程......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以启动流程(使用Process.Start或其他
方法)作为模态窗口?意思是,我不希望这个过程成为当前的C#表格。直到开始的过程是
关闭。
提前致谢。
任何帮助都是非常苛刻的。
Nick Z.
Is it possible to start a process (using Process.Start or other
methods) as a modal window? Meaning, I dont want the C# form that
started the process to become "current" untill the started process is
closed.
Thanks in advance.
Any help is greatly apreciated.
Nick Z.
推荐答案
您好,
您可以使用Process。 Handle和WaitHandle类等待进程''
结束。
-
Miha Markic [MVP C#] - RightHand .NET咨询&开发
SLODUG - 斯洛文尼亚开发者用户组
www.rthand.com
< pa ***** @ gmail.com>在消息中写道
news:11 ********************* @ z14g2000cwz.googlegro ups.com ...
Hi,
You might use Process.Handle and WaitHandle class to wait for the Process''
end.
--
Miha Markic [MVP C#] - RightHand .NET consulting & development
SLODUG - Slovene Developer Users Group
www.rthand.com
<pa*****@gmail.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
是否可以启动一个进程(使用Process.Start或其他
方法)作为模态窗口?这意味着,我不希望C#表单启动流程成为当前流程。直到开始的过程已经关闭。
提前致谢。
任何帮助都非常令人钦佩。
Nick Z。
Is it possible to start a process (using Process.Start or other
methods) as a modal window? Meaning, I dont want the C# form that
started the process to become "current" untill the started process is
closed.
Thanks in advance.
Any help is greatly apreciated.
Nick Z.
这不会冻结应用程序。例如,如果我使用
Process :: WaitForExit C#应用程序冻结,直到进程是关闭(即没有事件处理,窗口没有重新绘制等)。另外
它仍然不会阻止用户表格制作C#应用程序窗口
活动。
Wouldn''t this freeze the application. For example if I use
Process::WaitForExit the C# application freezes untill the process is
closed (ie. no event are handled, window is not repainted etc.). Plus
it still doesn''t prevent the user form making the C# application window
active.
主要是我正在寻找一种模拟这种行为的方法:
当你调用MessageBox.Show()时,消息框有
独家专注。如果您尝试使用父窗口消息框
闪烁并保持活动窗口。
Mostly I''m looking for a way to simulate this behavior:
When you call MessageBox.Show() for example, the message box has
exclusive focus. if you try using the parent window the message box
blinks and remains the active window.
这篇关于开始一个过程......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文