473,788 Members | 2,897 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Hiding tabs on a FormControl

RSH
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...BU T the tabs
themselves arent visible when you run the application...i nstead the only way
to go from one tab to the next is programatically . I have looked through
all the properties I can find to set the tabs themselves to invisible.
Please note: I'm not trying to hide the panel associated with the tab...just
the physical tab itself.

Thanks,
RSH
Nov 21 '05 #1
2 1494
"RSH" <wa************ *@yahoo.com> schrieb:
I'm not trying to hide the panel associated with the tab...just the
physical tab itself.


Removing a tabcontrol's tabpage headers
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=tabcontrolr emoveheaders&la ng=en>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2
Something like this maybe:

to remove a Tab:

TabControl1.Tab Pages.Remove(my TabPage1)

to add the tab back:

TabControl1.Tab Pages.Add(myTab Page1)

myTabPage1 is the name in this case to a particular tabpage in the Tab Control Editor (not the text on the tab itself) that you
gave to the page from inside the editor (selected from the Tab Pages Collection Elipse ( .....)

The Remove line does not destroy the tabpage just hides it.

Hope this helps.

james


"RSH" <wa************ *@yahoo.com> wrote in message news:eN******** ******@TK2MSFTN GP12.phx.gbl...
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...B UT the tabs themselves arent visible when you run the application...i nstead the only way to go from one tab to
the next is programatically . I have looked through all the properties I can find to set the tabs themselves to invisible.
Please note: I'm not trying to hide the panel associated with the tab...just the physical tab itself.

Thanks,
RSH

Nov 21 '05 #3

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

Similar topics

7
5283
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, which I won't go into, the detail which I require cannot be determined programmatically, so I planned to have two subforms, identical in design but with slightly different data, dependent on a criterion in the main form. Both will sit on the...
4
9923
by: Amjad | last post by:
How do I hide a tab in a TabControl that contains 3 tabs I tried the following and it didn't work tabTab2.Hide( tabTab2.Visible = Fals Amjad
1
7073
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
3762
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 can show/hide up to 10 tabs, there is a lot of repainting/flickering going on and looks really bad with everything flashing all over the place. Is there a way to turn off the painting until all the tab stuff is executed and then do 1 refresh ? ...
135
7530
by: Xah Lee | last post by:
Tabs versus Spaces in Source Code Xah Lee, 2006-05-13 In coding a computer program, there's often the choices of tabs or spaces for code indentation. There is a large amount of confusion about which is better. It has become what's known as “religious war” — a heated fight over trivia. In this essay, i like to explain what is the situation behind it, and which is proper.
2
3885
by: Groningen | last post by:
Hi all, I created a frame with checkboxes in it. I also created a tabstrip with several tabs. Does anyone know if its possible to hide these tabs until I check the associated checkbox? Please advice me. Thanks!
8
2505
by: M K | last post by:
How do you hide individual tabs? I have tried .Hide() but it hides them all? Mark
7
3759
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, this works fine. However, when I'm in Design View, I can't access the tabs without changing the tab control's Style back to Tabs. But I want to be able to place controls in that space at the top where the tabs used to be. But if I need to turn the...
5
3780
by: usha535140 | last post by:
Hi, In the intial page I want to dispay a check box ie for the first time I should display the page with check box ,If the check box is checked i need to dispaly the tabcontainer with the tabs.If it is unchecked It should nt display any thing. I tried the following apporach : in aspx page for all the tabs of the container I used Enabled="false" later in the java script method I used set_Enabled(true) for all the tabs, with this am...
0
9498
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10370
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10177
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10113
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6750
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5402
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5538
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3677
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2896
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.