Home > Archive > Visual Basic > November 2005 > Show/Hide tab page in TabStrip control
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Show/Hide tab page in TabStrip control
|
|
| its_faiz@hotmail.com 2005-11-24, 3:55 am |
| We are developing an application in VB6. We have used TabStrip control
to display multiple tab pages with different information. We need to
either enable/disable or show/hide a tab page for certain conditions,
which appears to be impossible with TabStrip control.
Has someone achieved this with TabStrip control (i.e. show/hide or
enable/disable a specific tab page)? We don't want to use SSTab control
that provides this feature, because it would change the look and feel
of this application from other application that have been developed by
using TabStrip control.
Any help will be highly appreciated.
Regards,
Gsox
| |
| Mark Yudkin 2005-11-27, 6:55 pm |
| The TabStrip consists of a collection of Tab objects (TabStrip.Tabs). You
can use the normal methods you use for all collections (Add, Remove, etc) to
make any colletion you want. For further information, review the
documentation.
<its_faiz@hotmail.com> wrote in message
news:1132817376.727102.100500@o13g2000cwo.googlegroups.com...
> We are developing an application in VB6. We have used TabStrip control
> to display multiple tab pages with different information. We need to
> either enable/disable or show/hide a tab page for certain conditions,
> which appears to be impossible with TabStrip control.
>
> Has someone achieved this with TabStrip control (i.e. show/hide or
> enable/disable a specific tab page)? We don't want to use SSTab control
> that provides this feature, because it would change the look and feel
> of this application from other application that have been developed by
> using TabStrip control.
>
> Any help will be highly appreciated.
>
> Regards,
>
> Gsox
>
| |
| Ken Halter 2005-11-28, 6:55 pm |
| <its_faiz@hotmail.com> wrote in message
news:1132817376.727102.100500@o13g2000cwo.googlegroups.com...
>
> Has someone achieved this with TabStrip control (i.e. show/hide or
> enable/disable a specific tab page)? We don't want to use SSTab control
> that provides this feature, because it would change the look and feel
> of this application from other application that have been developed by
> using TabStrip control.
>
> Any help will be highly appreciated.
>
> Regards,
>
> Gsox
Adding to the pile (btw BUGS is not an appropriate crosspost for this type
of question), the SSTab can be made to look quite a bit like a TabStrip by
setting its Style property to 1 (ssStylePropertyPage). It doesn't support XP
Themes though.
SSTab1.Style = ssStylePropertyPage
--
Ken Halter - MS-MVP-VB - http://www.vbsight.com
DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
Please keep all discussions in the groups..
|
|
|
|
|