6
Reply

Process.ClosemainWindow does not work

Sudarshan Ray

Sudarshan Ray

Jul 25 2013 1:52 AM
4.5k
Hi all,
One I start a process (say WMPlayer) with Process.Start.
I want to terminate the process with process.CloseMainWindow.
Things go as expected when I am debugging the code, but does not happen when I am executing the executable. The process.CloseWindow does not work, as in process does not get killed.
Thanks
Sudarshan

Answers (6)