private static void CurrentDomain_FirstChanceException(object sender, System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs e) { using (var f = new frmException(e.Exception)) { f.ShowDialog(); } }
private void button3_Click(object sender, EventArgs e) { using (var fr = new frmException(exception.InnerException, true)) fr.ShowDialog(); }