Closing apps?
If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
5 posts
Page 1 of 1
Yeah i know i need help again xD
How to close app? i can open them with
Thanks
How to close app? i can open them with
Code: Select all
but how to close?process.start("notepad.exe")
Thanks
Right below the Class declaration, just before the first Sub, put this:
Code: Select all
Wherever you want to start the process, use this:
Dim app as Process
Code: Select all
To kill the app, then use this:app=Process.Start("notepad.exe")
Code: Select all
Taken from http://www.dotnetperls.com/kill-vbnetapp.Kill()
Thanks, will the kill code gonna close apps i didnt open? i dont think sp can u give me code to kill or close other apps i didnt open?
Thx brah loove;
Thx brah loove;
Im back, thanks for this code but the one i need isnt this, cuz, I cant kill("notepad.exe") and i tried many others, didnt work,
and i need it to kill any thing not as this code, this cant work for what i need
Thanks
and i need it to kill any thing not as this code, this cant work for what i need

Thanks
Code: Select all
For Each p As Process In System.Diagnostics.Process.GetProcesses
If p.ProcessName.Contains("notepad") Then
p.Kill()
End If
Next
5 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023