Adding a Form to a Tab Control?

Y

youngie

I've developed an app with about 400 controls on a form. Now this
application needs to become "tabbed". How do you add a form to a tab
control?

Thanks

John
 
B

Bob Powell [MVP]

Retroactively adding a tab conntrol isn't simple. You add the tab control to
the form, break the current set of controls into convienient chunks and add
those to TabPages within the tab control.

Doing this by hand is a pain but whether it's simpler just to bite the
bullet and re-do your layout or to create a clever way to process the code,
say with a macro, is impossible to say without looking at your application.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
M

Morgan

To load a form into a tab page, put a panel on the tab page, set the parent
of the form you want to load to the tab page and load the form. There is
another property that needs to be set to false which I cant remember, but
the runtime will complain about it.
 
L

luxspes

I've developed an app with about 400 controls on a form. Now this
application needs to become "tabbed". How do you add a form to a tab
control?

You mean add a from to a tab control?
Or
Add a tab control to a form?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top