473,385 Members | 1,326 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,385 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 11665
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?
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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: 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: 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?
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...

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.