title: Visual Basic Form Application custom close button
body: <p>I created a new UI style like Visual Studios 2012 (the upper line with close button for example)</p>
  
  <p>Now I try to close the application when I click on it (hovering works fine) but when I click on it the form closes, but the program doesn't stop debugging.</p>
  
  <p>Is there any way I can make the program stop debugging?</p>
  
  <p>Me.Close(), Application.Exit() and Application.ExitThread() does <strong>not</strong> work.</p>