title: c# Windows Forms Application Exception not thrown!
body: <p>I have a strange problem, will appreciate if anyone can help.</p>
  
  <p>I have the following function:</p>
  
  <pre><code>void Foo()
  {
      MessageBox.Show("here");
      throw new Exception();
  }
  </code></pre>
  
  <p>I call it in the following two cases (separately - not at the same time):</p>
  
  <pre><code>private void Form2_Load(object sender, EventArgs e)
  {
       // Case 1
       Foo();
  }
  
  public Form2()
  {
      InitializeComponent();
  
      // Case 2
      Foo();
  }
  </code></pre>
  
  <p>I can see the messagebox (I receive message "here") in both case but:</p>
  
  <p>[Case 1] The application doesn't break on the exception (in Debug mode) and remains silent!</p>
  
  <p>[Case 2] Application correctly breaks and I can see that there is an exception in the Foo().</p>
  
  <p>Any idea why?</p>