Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1075
Unhandled exception when using toolbar
posted

How is it possible that exceptions (which are handled), are suddenly unhandled when clicking on a toolbutton?

I can't explain it very well, so that's why I attached a sample project demonstrating the problem. Both the normal button and the toolbutton call a method "Throw()", which in turn throws an exception. I've got a try/catch block in program.cs, to catch the exception. For the normal button, this works as expected. But when using the toolbutton, the exception isn't handled anymore.

Can anyone point me in the right direction? Thanks in advance.

UnhandledExceptionProblem.zip
Parents Reply Children