如何通过按下按钮关闭进程? [英] How to close a process by pressing a button?
本文介绍了如何通过按下按钮关闭进程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我只是制作一个测试程序,并希望制作一个按钮来关闭代码中我想要的过程。
如果我点击一个按钮如果它正在运行,它会关闭该过程
^进程名称我希望它关闭
如果难以理解,请帮助对不起。
解决方案
如何关闭例如notepad.exe如果它在代码中运行。
因为我只是把它放入错误中我不是真正的代码专家。
I'm just making a test program and wanted to make a button that will close the process I want that is in the code.
if I clicked a button and then it closes the process if it is running
^ process name I want it to close
Please help sorry if it's hard to understand.
解决方案
How would it work to close for example, notepad.exe if it's running in code.
Because I just get an error putting it in I am not really an expert with code.
这篇关于如何通过按下按钮关闭进程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文