I have a Form that has an event handler attached to the Resize event. When the event is called there is logic to reposition some controls, but that logic throws an exception.
Here is some code that reproduces the problem (within the form.designer.cs file):
this.Resize += OnResize;
...
private void OnResize(Object sender, EventArgs eventArgs)
{
throw new Exception();
}
On some machines when this is run within Visual Studio the exception causes an exception dialog to be displayed, but on others there is nothing, although there is an entry for the First Time Exception in the output window.
I've checked the exceptions dialog and the 'user-unhandled' option for the specific exception is checked in both cases. It's like the UI framework absorbs the problem in some cases and not others, which must be a system setting I guess, but which? Any clues?