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

Hiding TabPages

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, rather than removing the tabpage.

There doesn't seem to be an Enabled or Visible property and setting Locked =
True doesn't seem to do anything either.

Microsoft: this is basic functionality!!!

Thanks in advance,
Paul
Nov 15 '05 #1
1 1672
"Paul Sampson" <ps******@uecomm.com.au> wrote in
news:10***************@proxy.uecomm.net.au:
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, rather than removing the tabpage.

There doesn't seem to be an Enabled or Visible property and setting
Locked = True doesn't seem to do anything either.

Microsoft: this is basic functionality!!!

Thanks in advance,
Paul


TabPage is derived from Panel so it has a Hide and Show Method. Afaik it's
just hidden in the intellisense for TabPage class and in the MSDN in the
all members page most of the inherited methods are not listed.

--
best regards

Peter Koen
-----------------------------------
MCAD, CAI/R, CAI/S, CASE/RS, CAT/RS
http://www.kema.at
Nov 15 '05 #2

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....
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...
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....
2
by: Turxoft | last post by:
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?
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...
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:
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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,...

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.