....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/