How to delete TabControl without deleting everything in it?

C

Curious

I created a TabControl and then added other controls in it. Now I feel
that I don't need the TabControl and I want to remove it. However, it
seems that if I delete the TabControl, everything in the TabControl
will be gone as well.

Any advice on how to separate the TabControl with other controls in it?
 
J

Jeff Gaines

I created a TabControl and then added other controls in it. Now I feel
that I don't need the TabControl and I want to remove it. However, it
seems that if I delete the TabControl, everything in the TabControl
will be gone as well.

Any advice on how to separate the TabControl with other controls in it?

Un-dock the tab control then pull the controls off it to where you want
them to go. I tend to put them on a panel then if I change my mind and
want a tab control again (or a group box etc.) I can just pull the whole
panel on to the tab page.
 
C

Curious

Un-dock the tab control then pull the controls off it to where you want
them to go. I tend to put them on a panel then if I change my mind and
want a tab control again (or a group box etc.) I can just pull the whole
panel on to the tab page.

Thanks for the advice! I moved everything away from the TabControl.
Then deleted the TabControl.
BTW, it was not easy to select everything and move everything a little
away but not too far away so that they do not leave the form ( in
which case some auto-generated events for the controls may be gone).
 
J

Jack Jackson

Thanks for the advice! I moved everything away from the TabControl.
Then deleted the TabControl.
BTW, it was not easy to select everything and move everything a little
away but not too far away so that they do not leave the form ( in
which case some auto-generated events for the controls may be gone).

View -> Other Windows -> Document Outline (at least that is where it
is in my VS2008) can be very helpful when moving items. It lets you
move controls to exactly where you want, whether or not the source and
destination are both visible.
 

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