How do you attach a form to a tab control page

  • Thread starter Thread starter george r smith
  • Start date Start date
G

george r smith

I am no sure what you call this process, but how can you
attach an existing form to a tab control page.
In C# if possible
thanks
grs
 
What do you mean by "attach"? Are you trying to put a form *inside* a tab
page? If so, I wouldn't recommend it -- forms aren't meant to be placed
inside other controls (it'll work to a point, but you'll run into strange
problems).
 
Joe,

Thanks and I hear you but here is my situation.
You have a form with a property tree on the left and a panel on the right
like windows explorer.
The tree on the left are menu items and the panel on the right brings up a
tab page with selections
on the tabs. If you put you buttons, text boxes all those controls necessary
for input and display your
form have code in it for all those tab controls and tab pages and everything
on them.

This does not seem to me to be wise and is contrary to the current
guidelines from Microsoft to
provide a separation of logic.

How would you solve the above. Just looking for answers, not really
disagreeing with you.
thanks
grs
 
I think what I need is a user control, am I on the right track ?

Yeah... I do that in several places. You might want to place your
controls in a panel, and also adjust the Anchor properties so that you can
dynamically size the tab and still maintain some decent layout.

-mbray
 
Back
Top