Sudarshan Ray

Sudarshan Ray

  • NA
  • 8
  • 9.2k

Process.ClosemainWindow does not work

Jul 25 2013 1:52 AM
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)