Hiding tabs (tab control)

  • Thread starter Thread starter M K
  • Start date Start date
M

M K

How do you hide individual tabs? I have tried .Hide() but it hides them
all?

Mark
 
* 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
 
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
 
Your thanks were sufficient...

M K said:
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
 
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
 
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
 
ok point noted :)

Peter Duniho said:
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 wrote, On 9-7-2007 20:29:
ok point noted :)

Peter Duniho said:
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

You're welcome then ;)

Jesse
(who had just came home late and no Visual studio at hand to verify
exact syntax)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top