Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Is it Possible to disable a TabPage in the TabControl ?

5 views
Skip to first unread message

Björn Isemann

unread,
Jan 16, 2003, 5:02:03 PM1/16/03
to
Hi,

got some simple question. I used the SSTAB of Vb6 long time and there was
a property to disable single tabpages. is it possible to do that with the
new
tabcontrol of vb.net ? thanks for help

regards


VBDotNet Team [MS]

unread,
Jan 17, 2003, 3:09:32 PM1/17/03
to

It depends on what you wish to have happen (I'm not familiar with SSTAB) --
if you want the tab to not show at all, then you can just remove it from the
tab control's tab page collection:

Me.TabControl1.Controls.Remove(Me.TabPage2)

You'll then need to put it back in when you wish to enable it again...

Hope this helps,


Niklas

VB Dev Team
--
This posting is provided "AS IS" with no warranties, and confers no rights.

"Björn Isemann" <ma...@bjoernisemann.de> wrote in message
news:b07a4o$vuj$04$1...@news.t-online.com...

Bjoern Isemann

unread,
Jan 17, 2003, 3:56:33 PM1/17/03
to
with the SSTAB you can do things like

sstab1.tab(1).enabled = false

wich means, the text on the tab which was disabled was grey and when you
click on it, nothing happend, but it was visible all the time. and
somethink like that im looking for. to disable the page but the user
should be able to see what pages are available.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

0 new messages