473,626 Members | 3,216 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to make one TabPage of a TabControl invisible ?

Hi,

A TabControl may have several TabPages. I want to set one page to be
invisible.
So I called: TabPageX.Visibl e=false or TabPageX.Hide , but nothing happens.
Then I called TabPageX.Dispos e,this time the page is invisible. But I can't
restore the tabpage any more.

Any response will be appreciated,

Peter

Nov 21 '05 #1
5 20798
Peter,

The site from Mick Doherty, which is in my opinion the best for the
tabcontrol

http://dotnetrix.co.uk/tabcontrols.html

I hope this helps,

Cor
Nov 21 '05 #2
Hi,

In case you did not want to try the tab control Cor refered to. You
need to remove the tabpage from the tab control to hide it and add it back in
to show it.

Ken
------------------------

"Peter" wrote:
Hi,

A TabControl may have several TabPages. I want to set one page to be
invisible.
So I called: TabPageX.Visibl e=false or TabPageX.Hide , but nothing happens.
Then I called TabPageX.Dispos e,this time the page is invisible. But I can't
restore the tabpage any more.

Any response will be appreciated,

Peter

Nov 21 '05 #3

"Cor Ligthert [MVP]" <no************ @planet.nl> wrote in message
news:eV******** ******@tk2msftn gp13.phx.gbl...
Peter,

The site from Mick Doherty, which is in my opinion the best for the
tabcontrol

http://dotnetrix.co.uk/tabcontrols.html

I hope this helps,

Cor


In my opinion too ;-)

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html

Nov 21 '05 #4
Hi Ken,

Cor didn't refer to my TabControlEX, but my tabcontrol tips page, where
you'll find examples to show how to do a lot of things that are frequently
asked for, such as methods to hide and show tabpages.

Obviously, TabControlEX wraps up most of my tips and more, but some people
don't want to use third party controls (even free ones) when they can code
it themselves.

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
Nov 21 '05 #5
Mick Doherty's code is excellent!

Thank you all.

Peter
Nov 21 '05 #6

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

Similar topics

5
2010
by: meh | last post by:
New to C#... I have a tab page with a handful of controls on it (label, combobox, etc.). Is it possible to "boilerplate a tabPage with the controls "like a MDI childForm" so that adding a new tabPage includes the controls. Any examples, documentation or comments would be helpful. tia meh
2
3615
by: Fei Li | last post by:
tabpage hide() and show() do not work tabpage properties Enabled and Visible are able to be set but not work and not documented. Why?
4
1873
by: Sumit | last post by:
Hi all, I am working on an application in which there is a form which has a tabcontrol containing 4 tab pages. Let the name of the tabpages be A,B,C&D. The default view is that there are all the tabpages(A-D) in the tabControl. Now there is a button on TabPage A & when the button is clicked the default view changes to a tabcontrol having three tabpages A,B & D.
1
7648
by: RA | last post by:
Hi 1) I want to create a TabPage class in design mode - how do I do it? What type of project should I use? Is it going to be a custom control? 2) I have a TabControl that I would like to add to it the TabPage created in step 1. I don't want to draw the TabPage on the Tabcontrol in design mode, but to have a few TabPage controls that I candynamicaly load to the TabControl at runtime. Thanks
3
3475
by: Cynthia | last post by:
I knew that "Hide" doesn't work with Tabpage if I want to hide it. I should use Remove/Add. But I have some other controls in the tabpage which I don't want to use code to dynamiclly create them. If I use remove to remove that tabpage and later use add to add it back in, I have to write code to create all the controls inside that tabpage, otherwise it will be a blank page. What can I do to avoid it? Thank you for your time and help.
8
7524
by: Kejpa | last post by:
Hey there! I have a tabcontrol on one of my forms. Some of the tab should not be accessable (and thus invisible) until you give the correct password. But I can't hide the tab... tabSecrets1.Visible=false tabSecrets1.Hide will not work, the tab is visible :( Any help is appreciated Kejpa
2
2840
by: Rex the Strange | last post by:
I suspect the answer to this question is "you can't," but here goes anyway: I have a tabcontrol which contains, of course, various tabpages (added programmatically at runtime, but this is irrelevent to the question). I've noticed, however, that the actual drawing canvas of the tabpage is not flush with the edge of the tabpage. There is always a small one pixel border on the top, right and bottom and a three pixel border on the left. So,...
2
14309
by: John Wright | last post by:
I have the following routine I use to check for a certain tab page. I want to enable this tab page only on the tab control and set the focus. However, I cannot get the tab to set focus no matter what I do. Any suggestions? Public Sub SetTabs(ByVal TabID As String) For Each Ctrl As Control In Me.Controls If TypeOf Ctrl Is TabControl Then If Ctrl.HasChildren Then
6
4558
by: ray well | last post by:
i want a user to be able to change tab pages thru the keyboard, i tried entering the TabPage.text as '&1 Names', "&2 Addresses', etc., so that the user can change pages by type ALT 1, ALT 2, on the keyboard. but the text showing up in the tab is '&1 Names' instead of the '1' being underlined, and being able to be accessed thru the keyboard. how can i get a user to be able to change from TabPage to TabPage thru the keyboard? i find it...
0
8268
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8641
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...
0
8510
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7199
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6125
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5575
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
4093
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...
1
1812
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1512
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.