title: How do I debug Windows Forms Designer crashing?
body: <p>I have a windows forms project. It has a main form derived from <code>System::Windows::Forms::Form</code> which I can open in designer without any problems. If I try and close designer though, it kills Visual Studio (v2008 with SP1).</p>
  
  <p>The form includes a tab control which has pages with various <code>System::Windows::Forms::UserControl</code> derived forms. So I'm guessing the fault lies somewhere in the main form or one of those sub-components. The problem is I don't know how I can narrow it down at all?</p>
  
  <p>I've tried debugging from another copy of the developer environment, but I can't get the break points to work.</p>
  
  <p>Any suggestions on how to attack this problem would be very gratefully received!</p>
  
  <p><strong>[EDIT]</strong> By trial and error I've narrowed it down to a single <code>System::Windows::Forms::UserControl</code> derived control, and the crash only occurs when that control is nested within a <code>System::Windows::Forms::TabControl</code>. Is there something the tab control does when it closes which could cause the crash perhaps?</p>