Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / June 2005

Tip: Looking for answers? Try searching our database.

TabPage designer?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michael J. Salamone - 04 Jun 2005 17:09 GMT
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!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.