vb.net - Kill current application bypassing close events -
Is there an easy way to kill an application running without firewalling any registered form or application? Something like choosing the process in the task manager and killing it there?
I know this is not a "clean" way, and I know that you should use the system. Windows.form. Exit the app ()
or me.Close
, but in this case I really need to do it "dirty" way!
The only thing I can think of is to take the name of the process of my application and use it to use System.Diagnostics.Process
and kill it. . But this is the easiest way that would be good.
found this, process
is a function to obtain the current process.
Slow process in the form of a system. Diagnostics Process = process. Get Current Process Process Kill ()
Comments
Post a Comment