Mark Levison

Musings on No Touch Deployment, .NET development and photography

<July 2008>
SuMoTuWeThFrSa
293012345
6789101112
13141516171819
20212223242526
272829303112
3456789


Navigation

Other

Blogroll

Subscriptions

Post Categories



Debugging Exceptions in the WinForms designer

Matthew Adams co-author of Windows Forms in a Nutshell has just start a blog. His 2nd entry "What has the designer done now" has some excellent tips on working with the designer. My favourite is:

You can build a control that has an implementation bug that causes an exception at deisgn time. Everything will build fine, but when you reopen the designer you'll see the exception text.
...
Fixing it can be tricky. If inspection doesn't work, a handy tip is to open a second IDE, and attach to the original instance of VS.NET. You can then set some breakpoints in your control and watch what happens as you open the designer.

Sweet - I occasionally encounter this problems - usually when I've split a common base class out of several forms. No finally I can try to debug them. Thanks Matthew.

posted on Friday, January 14, 2005 1:26 PM by mlevison





Powered by Dot Net Junkies, by Telligent Systems