473,395 Members | 1,368 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,395 software developers and data experts.

Why TabControl1.TabPages(2).Visible = False wont work?

Hi
I like to make certain tab visible or not visible based on a certain condition
However, after executing the following statement, it still shows TabPages(2) ( this tabcontrol has 4 tapPages
TabControl1.TabPages(2).Visible = False
Any Idea

Thank
Kelly

Nov 20 '05 #1
4 2397
* "=?Utf-8?B?S2VsbHkgRHlrc3RyYQ==?=" <an*******@discussions.microsoft.com> scripsit:
Hi,
I like to make certain tab visible or not visible based on a certain condition.
However, after executing the following statement, it still shows TabPages(2) ( this tabcontrol has 4 tapPages)
TabControl1.TabPages(2).Visible = False
Any Idea?


Remove it from the 'TabPages' collection. The 'Visible' property
doesn't work.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2
How do i remove it
thank
Kelly
Nov 20 '05 #3
* "=?Utf-8?B?S2VsbHkgRHlrc3RyYQ==?=" <an*******@discussions.microsoft.com> scripsit:
How do i remove it?


'Me.TabControl1.TabPages.Remove(Me.TabPage1)'.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #4
Thanks Herfried
Kelly
Nov 20 '05 #5

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

Similar topics

0
by: Thanos | last post by:
Hi everybody. Excuse my english is not perfect. I would to hide TabPages but I have tried >> TabPage.hide() or >> TabPage.Visible = False but no luck. Maybe the current Tab control...
5
by: DraguVaso | last post by:
Hi, I have a MDIForm with some MDIChilds. When the user clicks on the "x" in the upper right corner, I don't want the MDIChild to be closed, but the property Visible = False. So far no...
2
by: Will Freeman | last post by:
Hello all, I saw the post earlier this week that the .Visible property for Tab Pages doesn't work. It seems that the .Enabled property also doesn't work. I would like to only disable one or more...
1
by: yosh | last post by:
Trying to make a splashscreen, i can make it work if i in sub new() on the main form set opacity to 0, show the splashscreen and then in the splashscreen set the main forms opacity to 100 right...
3
by: Tom McL. | last post by:
My Program has two forms From1 and Form2. On From1 I have a TabControl1 witch has 8 tabs currently. I would like to add a new tab from Form2 is this possible? I have tried the following code on...
7
by: Richard | last post by:
I have a form with seven tapages. These span only one record with a large number of fields (textboxes). On Tabpage1 I display a number of read-only text boxes. This displays information about...
2
by: Kevin | last post by:
Although lots of people described how to workaround the lack of ability to hide and show tab pages on a tab control, I couldnt find a code example so I made one. Create a class that inherits from...
2
by: needin4mation | last post by:
Hi, I have a employee and address table. the address table has an addressid and and employeeid. I have two datagrids, an employee and address. The employee datagrid has a select. Clicking the...
11
by: Pete Kane | last post by:
Hi All, does anyone know how to add TabPages of ones own classes at design time ? ideally when adding a new TabControl it would contain tab pages of my own classes, I know you can achieve this with...
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: 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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.