Closing a minimized/iconized process from C#

前端 未结 4 693
北海茫月
北海茫月 2021-01-20 10:15

Here\'s my issue: I need to close a process, already running, from a C# program. The problem is that the process now runs as an icon (minimized to taskbar), and unless the u

4条回答
  •  滥情空心
    2021-01-20 11:07

    Question to clarify why you're attempting this: If the only user interface on the process is the system tray icon, why would you want to kill that and but leave the process running? How would the user access the process? And if the machine is "unattended", why concern yourself with the tray icon?

提交回复
热议问题