views:

16

answers:

0

I'm interested in getting a definitive answer on what exactly is going on when Visual Studio 2005 loads a form or user control in the IDE's designer (aka "Design Mode"). Ideally, looking for a simple, step-by-step explanation of what Visual Studio is doing to render the form/controls.

I understand at some point each control's constructor is invoked, and thus a call to InitializeComponent() occurs - so dropping in crazy code in there will cause errors. But I don't really know much more than that, and how to interpret some of the errors I keep getting.

EDIT: This is close to what I'm looking for, but this simply explains how to provide a test for design mode, rather than what exactly is being executed during design mode.