Windows Forms Panel
Today I was toying with the task of creating an extensible Windows Forms application (much like stock & bond quote systems are today). The client wanted to be able to select a particular real estate investor and have the ability to create any number of more detailed content areas on the main application form.
For example, selecting investor #1 on a Windows form with 6 content areas on it would yield 6 different view of this investor's information.
I thought of using a Windows Forms Panel control. I subclassed it and got everything up and running. Then it came time for me, as one of the developers in my organization, to sit down and design a panel that would provide the user with useful information.
You can't.
I double-clicked on my new class (which subclassed my new "InvestorPanel" Windows Forms control, which in turn subclassed the normal Panel control) and all I got was the component design surface. I wasn't able to precisely lay out labels, text boxes, and other controls on my new control.
Does anyone have an idea of how I can allow developers to visuall design Windows Forms controls in design time so that they don't have to add all their controls at run time?