Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - How to delete TabControl without deleting everything in it?

Reply
 
Old 2 Weeks Ago   #1 (permalink)
Curious


 
 

How to delete TabControl without deleting everything in it?

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?

My System SpecsSystem Spec
Old 2 Weeks Ago   #2 (permalink)
Jeff Gaines


 
 

Re: How to delete TabControl without deleting everything in it?

On 05/11/2009 in message
<bb42c665-e2ea-4019-9ece-ce757cd257f7@newsgroup>
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
My System SpecsSystem Spec
Old 2 Weeks Ago   #3 (permalink)
Curious


 
 

Re: How to delete TabControl without deleting everything in it?

On Nov 5, 11:25*am, "Jeff Gaines" <jgaines_new...@newsgroup> wrote:
Quote:

> On 05/11/2009 in message
> <bb42c665-e2ea-4019-9ece-ce757cd25...@newsgroup>
>
> 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.
>
Quote:

> >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).
My System SpecsSystem Spec
Old 2 Weeks Ago   #4 (permalink)
Jack Jackson


 
 

Re: How to delete TabControl without deleting everything in it?

On Thu, 5 Nov 2009 12:18:43 -0800 (PST), Curious
<fir5tsight@newsgroup> wrote:
Quote:

>On Nov 5, 11:25*am, "Jeff Gaines" <jgaines_new...@newsgroup> wrote:
Quote:

>> On 05/11/2009 in message
>> <bb42c665-e2ea-4019-9ece-ce757cd25...@newsgroup>
>>
>> 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.
>>
Quote:

>> >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.
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Message in inbox deleting when delete message in Delete folder Vista mail
Draw a LINE on a TABCONTROL??? .NET General
Custom Control between tabcontrol and Outlook bar .NET General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46