PC Review


Reply
Thread Tools Rate Thread

Anyone been able hide a tabpage?

 
 
=?Utf-8?B?cGF4dmlzdGE=?=
Guest
Posts: n/a
 
      5th Mar 2004
Whether I set it on creation
TabPage page = new TabPage()
page.Hide()
page.Text = "Tab1"
tab.TabPage.Add(page)

or later

tab.TabPages[0].Hide()

neither seems to hide the tab page. Anyone else?
 
Reply With Quote
 
 
 
 
éric
Guest
Posts: n/a
 
      5th Mar 2004
I usually use tab.TabPages.Remove(page)

"paxvista" <(E-Mail Removed)> wrote in message
news:346604EB-CE67-446F-9A84-(E-Mail Removed)...
> Whether I set it on creation:
> TabPage page = new TabPage();
> page.Hide();
> page.Text = "Tab1";
> tab.TabPage.Add(page);
>
> or later:
>
> tab.TabPages[0].Hide();
>
> neither seems to hide the tab page. Anyone else?



 
Reply With Quote
 
Thomas
Guest
Posts: n/a
 
      5th Mar 2004
Hi,

I also use "Remove" method.
In fact, when you call "Hide" method, it only hides the fields contained in
the tabpage, but not the tabpage himself.

Regards,

Thomas.

"éric" <(E-Mail Removed)> a écrit dans le message de
news:(E-Mail Removed)...
> I usually use tab.TabPages.Remove(page)
>
> "paxvista" <(E-Mail Removed)> wrote in message
> news:346604EB-CE67-446F-9A84-(E-Mail Removed)...
> > Whether I set it on creation:
> > TabPage page = new TabPage();
> > page.Hide();
> > page.Text = "Tab1";
> > tab.TabPage.Add(page);
> >
> > or later:
> >
> > tab.TabPages[0].Hide();
> >
> > neither seems to hide the tab page. Anyone else?

>
>



 
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
Hide Tabpage Max3vil Microsoft Dot NET Framework Forms 1 17th Jan 2007 04:34 PM
hide the tab of tabpage Esmail Bonakarian Microsoft Dot NET Framework Forms 9 31st Dec 2005 12:13 AM
why tabPage.Hide() does not work? =?Utf-8?B?RmVpIExp?= Microsoft C# .NET 1 13th Nov 2004 03:40 PM
Hide TabPage Kejpa Microsoft VB .NET 8 22nd Oct 2004 06:54 AM
Is there really no way to hide a TabPage? Ed Sutton Microsoft Dot NET Framework Forms 1 28th Feb 2004 04:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:19 PM.