title: Show Exception Box
body: <p>I am throwing an exception in c# in some cases. The problem is, that I want to show the exception in a box like this (no MessageBox):</p>
  
  <p><a href="https://i.stack.imgur.com/i37Sc.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/i37Sc.jpg" alt=""></a></p>
  
  <p>But so far the Program is only crashing, after the exception is throwed. I throw the exception like this:</p>
  
  <pre><code>throw new IndexOutOfRangeException("Message");
  </code></pre>