Try-Catch not catching MDI child error

Try-Catch not catching MDI child error

Post by VG9kZ » Fri, 19 May 2006 06:19:03


I am launching a MDI child form non-modally (i.e. "form.Show()") from within
a Try-Catch block within a menu Click event on the MDI parent. This child
form loads fine, but during operation of a 3rd party control an exception is
thrown. This exception goes unhandled and the application chokes.

How can I catch this kind of exception?

Any help is greatly appreciated.

Thanks!
T.
 
 
 

Try-Catch not catching MDI child error

Post by Mattias Sj » Fri, 19 May 2006 06:54:34

>How can I catch this kind of exception?

Handle the Application.ThreadException event.


Mattias

--
Mattias Sjren [C# MVP] mattias @ mvps.org
http://www.yqcomputer.com/ | http://www.yqcomputer.com/
Please reply only to the newsgroup.