Пример #1
0
 private static void CurrentDomain_FirstChanceException(object sender, System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs e)
 {
     using (var f = new frmException(e.Exception))
     {
         f.ShowDialog();
     }
 }
Пример #2
0
 private void button3_Click(object sender, EventArgs e)
 {
     using (var fr = new frmException(exception.InnerException, true))
         fr.ShowDialog();
 }