471,092 Members | 1,076 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,092 software developers and data experts.

Enabling / Disabling Tab Pages

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.
Mar 14 '06 #1
7 6777
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
Mar 14 '06 #2

"Vignesh" <Vi*****@discussions.microsoft.com> wrote in message
news:7B**********************************@microsof t.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?

Mar 14 '06 #3
Vignesh,

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

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

I hope this helps,

Cor
"Vignesh" <Vi*****@discussions.microsoft.com> schreef in bericht
news:7B**********************************@microsof t.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.

Mar 14 '06 #4
Hi,

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

"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

Mar 15 '06 #5
"Vignesh" <Vi*****@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/>

Mar 15 '06 #6
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

"Herfried K. Wagner [MVP]" wrote:
"Vignesh" <Vi*****@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/>

Mar 16 '06 #7
"Vignesh" <Vi*****@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/>

Mar 16 '06 #8

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by HumptyDumpty | last post: by
2 posts views Thread by adeelanjum2001 | last post: by
7 posts views Thread by John Meyer | last post: by
2 posts views Thread by dougawells | last post: by
3 posts views Thread by D¿ejm | last post: by

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.