On my main app form, I have a TabControl.
I want to create an assembly that contains the TabPages, and then
programmitcally add those TabPages to the TabControl. That's easy enough.
But what I can't figure out is how to use the designer to design the
TabPages. I am adding a class derived from System.Windows.Forms.Form class.
I can use the designer to design that form, but I can't add that to the
TabControl, correct? So, I manually changed it to
System.Windows.Forms.TabPage, but now the designer won't let me do anything
with it. Well, I can add non-visual controls, but it doesn't give me a
display surface to add visual controls. Any way to get this done?
Thanks!

Signature
Michael Salamone [eMVP]
Entrek Software, Inc.
www.entrek.com
Michael J. Salamone - 04 Jun 2005 18:39 GMT
I should have searched the archives first...
Derive from UserControl (not Form) to layout the controls. Then add the
UserControl to a TabPage object, and add that TabPage to the TabControl.

Signature
Michael Salamone [eMVP]
Entrek Software, Inc.
www.entrek.com
> On my main app form, I have a TabControl.
>
[quoted text clipped - 10 lines]
>
> Thanks!