I am having trouble getting the global exception handler from this thread to work for me. I've tried a variety of copy and paste locations, but believe that I'm missing something rather simple and obvious.

For clarity, I put the code in the place of the Class Form1 code. It wouldn't compile without a button, so I added one, then on compilation the button wasn't there. I threw the code into Form1.Designer.vb, the button was there, and the exception was thrown correctly, but the exception was unhandled.

Thanks in advance