"JosepM" <jmfreixesNO@lycos.SPAM.es> schrieb:
> I want to handle the 'UnhandledException' in my application, but ir seems
> not to work. My application is a control hosted by IE. In the control's
[quoted text clipped - 7 lines]
> I'm forcing a 'Division by zero' exception to test it, buy my method is
> neved called. Anybody knows what am I doing wrong?
Make sure you read the "Remarks" section:
.NET Framework Class Library -- 'DivideByZeroException' Class
<URL:http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemdividebyzeroexcept
ionclasstopic.asp>

Signature
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
JosepM - 27 Apr 2005 17:52 GMT
In my test I use integer arithmetic, so I don't have a NaN value and the
exception is thrown.
In fact, the default window is shown on screen with the information of the
exception. That's the issue. My event handler doesn't execute and the
default screen appears, as I didn't defined the custom handler.
Thanks for all,
> "JosepM" <jmfreixesNO@lycos.SPAM.es> schrieb:
> > I want to handle the 'UnhandledException' in my application, but ir seems
[quoted text clipped - 12 lines]
>
> .NET Framework Class Library -- 'DivideByZeroException' Class
<URL:http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemdividebyz
eroexceptionclasstopic.asp>