473,386 Members | 1,708 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Tab Pages

VJ
I have a Tab Control with 2 Pages, on windows form. I want to be able to
hide a tab page based on certain condition when the Form loads. I have tried
to set the Page.Visible to false, it does not work. I even tried
Page.Enabled property and set it to False..to see if the tab page is
disabled, it does not work.

I debugged the code, and the execution passes through the line were I am
trying to set the property, it goes through with no errors or exceptions..

What's happening here ?

VJ
Nov 20 '05 #1
6 1805
Hello VJ

Its a bug in the tabcontrol. There's a work around :
Use 'Me.TabControl1.TabPages.Remove(TabPage2)' to hide it
and 'Me.TabControl1.TabPages.Add(TabPage2)' to show it
again ...

Kind Regards
Jorge Cavalheiro
-----Original Message-----
I have a Tab Control with 2 Pages, on windows form. I want to be able tohide a tab page based on certain condition when the Form loads. I have triedto set the Page.Visible to false, it does not work. I even triedPage.Enabled property and set it to False..to see if the tab page isdisabled, it does not work.

I debugged the code, and the execution passes through the line were I amtrying to set the property, it goes through with no errors or exceptions..
What's happening here ?

VJ
.

Nov 20 '05 #2
VJ
Ok Thanks.. I just searched google groups and got the whole story on this
thing... Interesting.. Will be ok now as the pages are simple..But I can
feel for those people with complex pages and needing to have the pages in
order. Hope MS comes up with some patch soon...

VJ

"Jorge" <an*******@discussions.microsoft.com> wrote in message
news:01****************************@phx.gbl...
Hello VJ

Its a bug in the tabcontrol. There's a work around :
Use 'Me.TabControl1.TabPages.Remove(TabPage2)' to hide it
and 'Me.TabControl1.TabPages.Add(TabPage2)' to show it
again ...

Kind Regards
Jorge Cavalheiro
-----Original Message-----
I have a Tab Control with 2 Pages, on windows form. I

want to be able to
hide a tab page based on certain condition when the Form

loads. I have tried
to set the Page.Visible to false, it does not work. I

even tried
Page.Enabled property and set it to False..to see if the

tab page is
disabled, it does not work.

I debugged the code, and the execution passes through

the line were I am
trying to set the property, it goes through with no

errors or exceptions..

What's happening here ?

VJ
.

Nov 20 '05 #3
Have you tried using the Microsoft Tabbed Dialog before
instead of the VB Tab Control? I think it works alot
better.

-----Original Message-----
I have a Tab Control with 2 Pages, on windows form. I want to be able tohide a tab page based on certain condition when the Form loads. I have triedto set the Page.Visible to false, it does not work. I even triedPage.Enabled property and set it to False..to see if the tab page isdisabled, it does not work.

I debugged the code, and the execution passes through the line were I amtrying to set the property, it goes through with no errors or exceptions..
What's happening here ?

VJ
.

Nov 20 '05 #4
* "VJ" <vi********@yahoo.com> scripsit:
I have a Tab Control with 2 Pages, on windows form. I want to be able to
hide a tab page based on certain condition when the Form loads. I have tried
to set the Page.Visible to false, it does not work. I even tried
Page.Enabled property and set it to False..to see if the tab page is
disabled, it does not work.


You'll have to remove the tabpage from the tabcontrol's 'TabPages'
collection. The 'Hide' method and the 'Visible' and 'Enabled'
properties don't work.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #5
VJ
Tabbed Dialog?.. what's the DLL name or Namespace for this control?

VJ

"Sean" <an*******@discussions.microsoft.com> wrote in message
news:06****************************@phx.gbl...
Have you tried using the Microsoft Tabbed Dialog before
instead of the VB Tab Control? I think it works alot
better.

-----Original Message-----
I have a Tab Control with 2 Pages, on windows form. I

want to be able to
hide a tab page based on certain condition when the Form

loads. I have tried
to set the Page.Visible to false, it does not work. I

even tried
Page.Enabled property and set it to False..to see if the

tab page is
disabled, it does not work.

I debugged the code, and the execution passes through the

line were I am
trying to set the property, it goes through with no

errors or exceptions..

What's happening here ?

VJ
.

Nov 20 '05 #6
COM Object -

Microsoft Tabbed Dialog 6.0
-----Original Message-----
Tabbed Dialog?.. what's the DLL name or Namespace for this control?
VJ

"Sean" <an*******@discussions.microsoft.com> wrote in messagenews:06****************************@phx.gbl...
Have you tried using the Microsoft Tabbed Dialog before
instead of the VB Tab Control? I think it works alot
better.

>-----Original Message-----
>I have a Tab Control with 2 Pages, on windows form. I

want to be able to
>hide a tab page based on certain condition when the
Form loads. I have tried
>to set the Page.Visible to false, it does not work. I

even tried
>Page.Enabled property and set it to False..to see if
the tab page is
>disabled, it does not work.
>
>I debugged the code, and the execution passes through
the line were I am
>trying to set the property, it goes through with no

errors or exceptions..
>
>What's happening here ?
>
>VJ
>
>
>.
>

.

Nov 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: skura | last post by:
I am trying to understand how the data in sql server is stored and also regarding fill factor and page splitting. 1) My first question what is the difference between Index pages and Data pages....
4
by: mairhtin o'feannag | last post by:
Hello, I have a tablespace striped across three drives, call them 1,2,3, just to be clever. :) I allocated a lot more space (DMS) than I should have, since I didn't know a way to estimate the...
12
by: Sunny | last post by:
Hi, I need to download some web pages from a web server (most of them are not static html, but .asp pages). The content (I.e. the pure html) in the pages are not changed very often, so I'll...
8
by: moondaddy | last post by:
Are frame pages really taboo in asp.net and if so, why and what's the down side of using them? I'm trying to use user controls instead, but it seems that a lot of things were a lot easier with...
21
by: matvdl | last post by:
I have a system that was originally developed in asp - the pages are saved in SQL (there are over 10,000 pages) and saved to a temp directory in the server when requested by a client. I have...
5
by: Michael Herman \(Parallelspace\) | last post by:
1. What are some compelling solutions for using Master/Content pages with Web Pages? 2. If a content area has a web part zone with web parts, what is the user experience like when "editting" the...
17
by: Rob R. Ainscough | last post by:
Again another simple concept that appears NOT to be intuitive or I'm just stupid. I've read the WROX book and the example doesn't actually show how the .master page links in the other content...
6
by: Konstantin Andreev | last post by:
Hello, all. Let the tablespace SY810T4K is almost full: --------------- db2 =list tablespaces show detail ... Name = SY810T4K Type = Database managed space Contents...
11
by: =?Utf-8?B?UGV0ZXIgSw==?= | last post by:
I am working with Visual Studio or alternately with Expression Web. I need to create about 50 aspx pages with about 1200 thumbnali images, typically arranged in three to four groups per page,...
1
by: deshaipet | last post by:
Hi friends - I created a automatic storage tablespace with a pagesize of 16 K and initial size of 64 MB. create large tablespace test_tbsp1 pagesize 16k managed by automatic storage autoresize...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.