Home All Groups Group Topic Archive Search About

Enabling / Disabling Tab Pages

Author
14 Mar 2006 5:53 AM
Vignesh
I have tab control which has some TabPages. I want to enable or disable the
tabpages based on some condition. It is possible to that.

Thanks in advance.

Author
14 Mar 2006 6:05 AM
Chris
Vignesh wrote:
> I have tab control which has some TabPages. I want to enable or disable the
> tabpages based on some condition. It is possible to that.
>
> Thanks in advance.

Do you want the tab to noot show up at all?  Turn Grey?  What are you
looking for?

Chris
Author
15 Mar 2006 4:46 AM
Vignesh
Hi,

The tab pages should show up(Visible), but disabled. i want the way it works
in VB 6.0. tab control.

Show quoteHide quote
"Chris" wrote:

> Vignesh wrote:
> > I have tab control which has some TabPages. I want to enable or disable the
> > tabpages based on some condition. It is possible to that.
> >
> > Thanks in advance.
>
> Do you want the tab to noot show up at all?  Turn Grey?  What are you
> looking for?
>
> Chris
>
Author
15 Mar 2006 12:00 PM
Herfried K. Wagner [MVP]
"Vignesh" <Vign***@discussions.microsoft.com> schrieb:
> The tab pages should show up(Visible), but disabled. i want the way it
> works
> in VB 6.0. tab control.

Disabling tabpages was not supported by VB6' TabStrip control.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
16 Mar 2006 11:00 AM
Vignesh
Hi,

In SSTab we can individually enable or disable the tabpages. I want way it
works.
Suppose i have button and tabcontrol( has 3 tab pages) in form. On click of
the button i want make the tab page 2 to be disbabled.

Sample Code:

Private Sub Command1_Click()
        SSTab1.TabEnabled(1) = False
End Sub

Thanks
Vignesh

Show quoteHide quote
"Herfried K. Wagner [MVP]" wrote:

> "Vignesh" <Vign***@discussions.microsoft.com> schrieb:
> > The tab pages should show up(Visible), but disabled. i want the way it
> > works
> > in VB 6.0. tab control.
>
> Disabling tabpages was not supported by VB6' TabStrip control.
>
> --
>  M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
>  V B   <URL:http://classicvb.org/petition/>
>
>
Author
16 Mar 2006 12:21 PM
Herfried K. Wagner [MVP]
"Vignesh" <Vign***@discussions.microsoft.com> schrieb:
> In SSTab we can individually enable or disable the tabpages. I want way it
> works.
> Suppose i have button and tabcontrol( has 3 tab pages) in form. On click
> of
> the button i want make the tab page 2 to be disbabled.

ACK, but .NET's TabControl control bases on the same Win32 control VB6'
TabStrip control does.  SSTab isn't based on this control.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
14 Mar 2006 6:16 AM
Homer J Simpson
"Vignesh" <Vign***@discussions.microsoft.com> wrote in message
news:7BA5816C-8D62-4820-9586-1050862870A6@microsoft.com...

>I have tab control which has some TabPages. I want to enable or disable the
> tabpages based on some condition. It is possible to that.

What do you mean by disabling?
Author
14 Mar 2006 6:47 AM
Cor Ligthert [MVP]
Vignesh,

EveryThing you want to know about Tabpages and its strange behaviour.

http://dotnetrix.co.uk/tabcontrols.html

I hope this helps,

Cor


Show quoteHide quote
"Vignesh" <Vign***@discussions.microsoft.com> schreef in bericht
news:7BA5816C-8D62-4820-9586-1050862870A6@microsoft.com...
>I have tab control which has some TabPages. I want to enable or disable the
> tabpages based on some condition. It is possible to that.
>
> Thanks in advance.