Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / July 2007

Tip: Looking for answers? Try searching our database.

Hiding tabs (tab control)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
M K - 06 Jul 2007 21:08 GMT
How do you hide individual tabs?  I have tried .Hide() but it hides them
all?

Mark
Jesse Houwing - 07 Jul 2007 04:59 GMT
* M K wrote, On 6-7-2007 22:08:
> How do you hide individual tabs?  I have tried .Hide() but it hides them
> all?
>
> Mark

You need to remove the tab in question from the list of tabs of the tab
control.

To show the tab again, just add it to the tabcontrol again.

Jesse
M K - 07 Jul 2007 11:54 GMT
after further investigation your vagueness did help me some.

I didnt realize there was a TabControl and that was the main control and
TabPages were part of that control.

tabControl.Controls.Remove(tabPage);  // was what i was hoping would get
posted now that i have figured it out

>* M K wrote, On 6-7-2007 22:08:
>> How do you hide individual tabs?  I have tried .Hide() but it hides them
[quoted text clipped - 8 lines]
>
> Jesse
PS - 08 Jul 2007 14:48 GMT
> after further investigation your vagueness did help me some.

The response was only as vague as your question.

PS

> I didnt realize there was a TabControl and that was the main control and
> TabPages were part of that control.
>
> tabControl.Controls.Remove(tabPage);  // was what i was hoping would get
> posted now that i have figured it out

>>* M K wrote, On 6-7-2007 22:08:
>>> How do you hide individual tabs?  I have tried .Hide() but it hides them
[quoted text clipped - 8 lines]
>>
>> Jesse
M K - 09 Jul 2007 18:07 GMT
Thanks..

i personally didnt think my post was vague.  Guess I should have put.  need
the code for...

I always start with MSDN and if they don't provide me the correct answer I
do a web search and if i cant find the answer that way i then post.  Lots of
times I do get vague answers and i would assume (dont go there :) ) that if
my post was vague then i would be asked to clarify ... which i didnt get
asked in this case..  :)

again thanks

>> after further investigation your vagueness did help me some.
>
[quoted text clipped - 20 lines]
>>>
>>> Jesse
Peter Duniho - 09 Jul 2007 18:16 GMT
> i personally didnt think my post was vague. [...]

Your original post was not so vague that it prevented an answer.  And  
frankly, Jesse's post was not so vague that it prevented it from being  
useful to you.

Neither post was detailed, but both were specific enough to convey the  
information needed and neither was vague enough for there to be any point  
complaining about vagueness.  I leave it as an exercise for the reader to  
review the previous posts in this thread to see who made an unnecessary  
complaint about vagueness.

Pete
M K - 09 Jul 2007 19:29 GMT
ok point noted :)

>> i personally didnt think my post was vague. [...]
>
[quoted text clipped - 9 lines]
>
> Pete
Jesse Houwing - 09 Jul 2007 21:28 GMT
* M K wrote, On 9-7-2007 20:29:
> ok point noted :)
>
[quoted text clipped - 10 lines]
>>
>> Pete

You're welcome then ;)

Jesse
(who had just came home late and no Visual studio at hand to verify
exact syntax)
ModelBuilder - 08 Jul 2007 17:12 GMT
Your thanks were sufficient...

> after further investigation your vagueness did help me some.
>
[quoted text clipped - 16 lines]
> >
> > Jesse

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.