6
Answers

Process.ClosemainWindow does not work

Sudarshan Ray

Sudarshan Ray

11y
7.7k
1
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)