473,405 Members | 2,379 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,405 software developers and data experts.

How do you disable a Tab Page within a Tab Control?

Hello all,
Can anybody give me any ideas on how to disable a tab page within a tab
control.

I have a tab control tabClients with 3 pages. I would like to disable pages
2 & 3 when a certain condition is met.

Thanks in Advance.
Phil.
Jul 21 '05 #1
4 11666
On Tue, 19 Apr 2005 18:15:15 +1200, Phil wrote:
Hello all,
Can anybody give me any ideas on how to disable a tab page within a tab
control.

I have a tab control tabClients with 3 pages. I would like to disable pages
2 & 3 when a certain condition is met.

Thanks in Advance.
Phil.


You can't. What you can do is remove them from the TabControl and add them
again as soon as your condition changes.
--
Claudio Grazioli
http://www.grazioli.ch
http://www.grazioli.ch/HommingbergerGepardenforelle/
Jul 21 '05 #2
....that's not strictly true. You can disable a tabpage but, it does not stop
you selecting it, it just stops you interacting with any of its controls.
However, as you say, it is standard practice to remove and reinsert tabpages
as their access level changes.

If you can use a free third party tabcontrol then take a look at
TabControlEX which does allow you to disable tabpages as well as a few other
things you can't usually do.
http://dotnetrix.co.uk/controls.html

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"Claudio Grazioli" <ne********@gmx-ist-cool.de> wrote in message
news:1g******************************@40tude.net.. .
On Tue, 19 Apr 2005 18:15:15 +1200, Phil wrote:
Hello all,
Can anybody give me any ideas on how to disable a tab page within a tab
control.

I have a tab control tabClients with 3 pages. I would like to disable
pages
2 & 3 when a certain condition is met.

Thanks in Advance.
Phil.


You can't. What you can do is remove them from the TabControl and add them
again as soon as your condition changes.
--
Claudio Grazioli
http://www.grazioli.ch
http://www.grazioli.ch/HommingbergerGepardenforelle/

Jul 21 '05 #3
> If you can use a free third party tabcontrol then take a look at
TabControlEX which does allow you to disable tabpages as well as a few
other things you can't usually do.
http://dotnetrix.co.uk/controls.html


oops, I'm contradicting myself. I meant disable tabpage selection, not
disable tabpages.

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

Jul 21 '05 #4
Thanks for your replies,
I will try adding the tabs and removing them as you suggest.

Phil.

"Mick Doherty"
<EX***********@AND.REMOVE.SQUAREBRACKETS.[mdaudi100#ntlworld.com]> wrote in
message news:uX*************@TK2MSFTNGP15.phx.gbl...
If you can use a free third party tabcontrol then take a look at
TabControlEX which does allow you to disable tabpages as well as a few
other things you can't usually do.
http://dotnetrix.co.uk/controls.html


oops, I'm contradicting myself. I meant disable tabpage selection, not
disable tabpages.

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

Jul 21 '05 #5

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

Similar topics

2
by: Ben | last post by:
I've got an asp page that populates a listbox with info from a db. The list box ends up being pretty big, so I want to be able to search it effectively. I like the method wherein the user types...
0
by: Robert Ladd | last post by:
Hi, I'm trying to disable the asp.net calendar control from a javascript function, but it doesn't disable the doPostBack. To simplify the situation, assume a page with 4 controls. A...
9
by: junlia | last post by:
Does anyone how how can we disable the auto-postback feature in asp.net page? I have to use a server side control in the page, but the auto post back feature in it causes problems for me. Please...
4
by: Phil | last post by:
Hello all, Can anybody give me any ideas on how to disable a tab page within a tab control. I have a tab control tabClients with 3 pages. I would like to disable pages 2 & 3 when a certain...
6
by: | last post by:
hi, how to disable the controls in page? thanks For each myControl in Page.Controls 'want to disable myControl? Next
2
by: rn5a | last post by:
In a shopping cart app, assume that a user has placed 4 orders (each order has a corresponding OrderID which will be unique). When he comes to MyCart.aspx, by default, the details of his last order...
1
by: Webmills | last post by:
Hi I have a log out button at the top of my site. It is contained within a web control within the master page. Because it is the first button on the page, then by default it is the one that...
14
by: Amar | last post by:
Hi All, I am a newbie to PHP and have the task to create a page using PHP where in that page I need to disable all key operation as well as mouse operation even also the menu operation that...
4
by: =?Utf-8?B?TUNN?= | last post by:
I am trying to disable ViewState at the application level. I have the following line in my web.config: <pages enableViewState="false"></pages> But it is not working. What can I do?
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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...
0
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...

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.