Imagine launching a process or start an application, however in task manager makes a kill this process. Is there an event associated?
This code, cancel the user close the window application
private void Form1_Aplicacao_FormClosing(object sender, FormClosingEventArgs e)
{
if (e.CloseReason == CloseReason.UserClosing)
e.Cancel = false;
}
But if I using process.Kill() method, FormClosing event has not been fired. My question: Have an event to get a kill this own process?