473,388 Members | 1,198 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,388 software developers and data experts.

hiding tabpages

I have a tabcontrol in my form. I want to hide the tabpages. I want the user
cant change the tabpages and do it by code.how can I?
Nov 23 '05 #1
2 1484
Turxoft wrote:
I have a tabcontrol in my form. I want to hide the tabpages. I want
the user cant change the tabpages and do it by code.how can I?


You can't. Remove the tab from the tab control's tabs collection and
re-add it if you want to enable it.

Frans

--
------------------------------------------------------------------------
Get LLBLGen Pro, productive O/R mapping for .NET: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------
Nov 23 '05 #2
Hi,

As Frans said you cannot do it, what may work is if you put some control
over the tabs, in this way a click will be handled by the upper control and
not by the tabcontrol

you could hide/show this controls at your convenience to enable/disable the
pages.

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Turxoft" <e.******@turxoft.com> wrote in message
news:O6**************@TK2MSFTNGP12.phx.gbl...
I have a tabcontrol in my form. I want to hide the tabpages. I want the
user cant change the tabpages and do it by code.how can I?

Nov 23 '05 #3

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

Similar topics

4
by: StressPuppy | last post by:
(posted this in VB group but then realized I probably should have posted here) I have a TabControl with several TabPages. Upon startup, I only want to show the first TabPage, hiding the rest....
1
by: Paul Sampson | last post by:
Hi, Does anyone know how to hide certain TabPages inside a TabControl in VS.NET 2003? I've seen code to remove the tabpage but I want to show/hide based on the user's access rights each time,...
3
by: Boris Condarco | last post by:
Hi gurus, I am using tabControl in Windows forms and would like to hide some of the tabPages, does anyone of you can point me about it, i would really appreciate your helping me...! thanx a...
7
by: Richard | last post by:
I have a form with seven tapages. These span only one record with a large number of fields (textboxes). On Tabpage1 I display a number of read-only text boxes. This displays information about...
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.
2
by: Kevin | last post by:
Although lots of people described how to workaround the lack of ability to hide and show tab pages on a tab control, I couldnt find a code example so I made one. Create a class that inherits from...
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...
11
by: Pete Kane | last post by:
Hi All, does anyone know how to add TabPages of ones own classes at design time ? ideally when adding a new TabControl it would contain tab pages of my own classes, I know you can achieve this with...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
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...
0
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...

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.