PC Review


Reply
Thread Tools Rate Thread

How to delete TabControl without deleting everything in it?

 
 
Curious
Guest
Posts: n/a
 
      5th Nov 2009
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?
 
Reply With Quote
 
 
 
 
Jeff Gaines
Guest
Posts: n/a
 
      5th Nov 2009
On 05/11/2009 in message
<bb42c665-e2ea-4019-9ece-(E-Mail Removed)>
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
 
Reply With Quote
 
Curious
Guest
Posts: n/a
 
      5th Nov 2009
On Nov 5, 11:25*am, "Jeff Gaines" <jgaines_new...@yahoo.co.uk> wrote:
> On 05/11/2009 in message
> <bb42c665-e2ea-4019-9ece-ce757cd25...@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).
 
Reply With Quote
 
Jack Jackson
Guest
Posts: n/a
 
      5th Nov 2009
On Thu, 5 Nov 2009 12:18:43 -0800 (PST), Curious
<(E-Mail Removed)> wrote:

>On Nov 5, 11:25*am, "Jeff Gaines" <jgaines_new...@yahoo.co.uk> wrote:
>> On 05/11/2009 in message
>> <bb42c665-e2ea-4019-9ece-ce757cd25...@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.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
TabControl - cannot delete controls =?Utf-8?B?dGltYm9iZA==?= Microsoft VB .NET 0 7th Dec 2005 10:56 PM
Re: Unable to delete controls on TabControl Herfried K. Wagner [MVP] Microsoft VB .NET 1 7th Jun 2005 12:10 PM
Unable to delete controls on TabControl Falko Microsoft VB .NET 0 7th Jun 2005 11:04 AM
TabControl how do get close tab [x] on tabcontrol ? MumboJumbo Microsoft C# .NET 3 22nd Apr 2005 02:25 PM
Custom TabControl Delete Problem =?Utf-8?B?TmlsZXNoIFJhZGU=?= Microsoft Dot NET Framework Forms 0 28th Apr 2004 03:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:08 PM.