472,791 Members | 1,161 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,791 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 11628
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?
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{

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.