How to know when a process created by Process.Start() was closed?

前端 未结 4 1961
旧时难觅i
旧时难觅i 2021-01-16 06:08

I\'m using this:

var proc2 = Process.Start(Path.GetFullPath(filename));
proc2.Exited += (_, __) =>
{
    MessageBox.Show(\"closed!\");
};
<
4条回答
提交回复
热议问题