473,386 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Hiding tabs (tab control)

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

Mark
Jul 6 '07 #1
8 2483
* 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
Jul 7 '07 #2
M K
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

"Jesse Houwing" <je***********@nospam-sogeti.nlwrote in message
news:Ou**************@TK2MSFTNGP05.phx.gbl...
>* 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

Jul 7 '07 #3
PS

"M K" <sk********************@yahoo.comwrote in message
news:Xh*****************@newsread3.news.pas.earthl ink.net...
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
>
"Jesse Houwing" <je***********@nospam-sogeti.nlwrote in message
news:Ou**************@TK2MSFTNGP05.phx.gbl...
>>* 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


Jul 8 '07 #4
Your thanks were sufficient...

"M K" wrote:
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

"Jesse Houwing" <je***********@nospam-sogeti.nlwrote in message
news:Ou**************@TK2MSFTNGP05.phx.gbl...
* 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


Jul 8 '07 #5
M K
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
"PS" <ec***********@hotmail.comwrote in message
news:uv****************@TK2MSFTNGP05.phx.gbl...
>
"M K" <sk********************@yahoo.comwrote in message
news:Xh*****************@newsread3.news.pas.earthl ink.net...
>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
>>
"Jesse Houwing" <je***********@nospam-sogeti.nlwrote in message
news:Ou**************@TK2MSFTNGP05.phx.gbl...
>>>* 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



Jul 9 '07 #6
On Mon, 09 Jul 2007 10:07:06 -0700, M K <sk********************@yahoo.com>
wrote:
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
Jul 9 '07 #7
M K
ok point noted :)

"Peter Duniho" <Np*********@nnowslpianmk.comwrote in message
news:op***************@petes-computer.local...
On Mon, 09 Jul 2007 10:07:06 -0700, M K <sk********************@yahoo.com>
wrote:
>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

Jul 9 '07 #8
* M K wrote, On 9-7-2007 20:29:
ok point noted :)

"Peter Duniho" <Np*********@nnowslpianmk.comwrote in message
news:op***************@petes-computer.local...
>On Mon, 09 Jul 2007 10:07:06 -0700, M K <sk********************@yahoo.com>
wrote:
>>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)
Jul 9 '07 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Caroline Bradford | last post by:
Hi there, I wonder if there is a kind and knowledgeable person out there who can help me with a sticky problem. I have a form with a subform which shows detailed data. For complicated reasons,...
1
by: Mark C | last post by:
I have yet another problem with the infamous tab control in my Access 97 database. I have a form with a tab control with 4 tabs on each tab is a sub form bound to a form. When the main form loads...
2
by: Jim Hubbard | last post by:
I need an example of tabs usage like you might do in a tabbed browser application. I need to be able to open one or more tabs with customer data. Every tab is laid out exactly alike, only the...
2
by: RSH | last post by:
I am trying to upgrade an old VB 6 project to .Net. One of the things this application has is a series of 6 tabs in a tabcontrol...BUT the tabs themselves arent visible when you run the...
1
by: Turxoft | last post by:
I want to use tabcontrol in my form.I add several tab pages but want to hide the tabs.
5
by: marfi95 | last post by:
I am having to resort to Mick's methods when it comes to hiding/showing tabpages of my tab control since .NET doesn't work correct. I think I have it finally workign the way I need, but because I...
3
ADezii
by: ADezii | last post by:
One frequently asked question at TheScripts is how to set focus/make active a specific Tab on a Tab Control other than clicking on it. Before I provide the answer, I feel as though a little summary...
4
ADezii
by: ADezii | last post by:
One frequently asked question at TheScripts is how to set focus/make active a specific Tab on a Tab Control other than clicking on it. Before I provide the answer, I feel as though a little summary...
7
by: Phil Reynolds | last post by:
I'm using a tab control in Access 2000, and the user requested to have buttons in the form header, instead of the built-in tabs (so that when they scroll down, they can still switch tabs). Now,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.