| .NET DotNet Forum Index » General Discussion » How to delete TabControl without deleting everything... |
|
Page 1 of 1 |
|
| Author |
Message |
| Curious... |
Posted: Thu Nov 05, 2009 4:44 am |
|
|
|
Guest
|
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? |
|
|
| Back to top |
|
|
|
| Curious... |
Posted: Thu Nov 05, 2009 10:18 am |
|
|
|
Guest
|
On Nov 5, 11:25 am, "Jeff Gaines" <jgaines_new... at (no spam) yahoo.co.uk> wrote:
Quote: On 05/11/2009 in message
bb42c665-e2ea-4019-9ece-ce757cd25... at (no spam) n35g2000yqm.googlegroups.com
Curious wrote:
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.
--
Jeff Gaines Dorset UK
There is absolutely no substitute for a genuine lack of preparation
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). |
|
|
| Back to top |
|
|
|
| Jeff Gaines... |
Posted: Thu Nov 05, 2009 11:25 am |
|
|
|
Guest
|
On 05/11/2009 in message
<bb42c665-e2ea-4019-9ece-ce757cd257f7 at (no spam) n35g2000yqm.googlegroups.com>
Curious wrote:
Quote: 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.
--
Jeff Gaines Dorset UK
There is absolutely no substitute for a genuine lack of preparation |
|
|
| Back to top |
|
|
|
| Jack Jackson... |
Posted: Thu Nov 05, 2009 6:13 pm |
|
|
|
Guest
|
On Thu, 5 Nov 2009 12:18:43 -0800 (PST), Curious
<fir5tsight at (no spam) yahoo.com> wrote:
Quote: On Nov 5, 11:25 am, "Jeff Gaines" <jgaines_new... at (no spam) yahoo.co.uk> wrote:
On 05/11/2009 in message
bb42c665-e2ea-4019-9ece-ce757cd25... at (no spam) n35g2000yqm.googlegroups.com
Curious wrote:
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.
--
Jeff Gaines Dorset UK
There is absolutely no substitute for a genuine lack of preparation
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. |
|
|
| Back to top |
|
|
|
|