title: C# how to stop a program and its task completely
body: <p>I am making a WPF Application with .NET Framework 2.0 and currently I am having trouble stopping the program, I try to do it like this</p>
  
  <pre><code>System.Threading.Thread.CurrentThread.Interrupt();
  Application.ExitThread();
  Application.Exit();
  </code></pre>
  
  <p>but after this code executes, I check the task manager, and there I see that my program is still running and do not have intentions of stopping any time soon...</p>
  
  <p>How do I stop it completely?</p>