473,406 Members | 2,220 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,406 software developers and data experts.

vb.net 2003 tab control

129 100+
Guys I want to know about the tab control.

I have a tab control and it contains two more tabpages. how to hide one tabpage from the user when the user click a button.

already i am using this code
[quote]

control1.tabpages(0).visible=false
control1.selectedtab=control1.tabpages(1)
control1.tabpages(1).visible=true



Thanx in button
May 25 '07 #1
2 4950
dwadish
129 100+
Guys I want to know about the tab control.

I have a tab control and it contains two more tabpages. how to hide one tabpage from the user when the user click a button.

already i am using this code
Expand|Select|Wrap|Line Numbers
  1.  
  2. control1.tabpages(0).visible=false
  3. control1.selectedtab=control1.tabpages(1)
  4. control1.tabpages(1).visible=true
  5.  
  6.  
Thanx in button
May 25 '07 #2
You cannot 'Hide' a tab, nor can you change its 'visible' property.

What you can do is remove the desired tab and then readd it as needed using the following code

To remove tabs
Expand|Select|Wrap|Line Numbers
  1. ' Removes the selected tab:
  2. TabControl1.TabPages.Remove(TabControl1.SelectedTab)
  3. ' Removes all the tabs:
  4. TabControl1.TabPages.Clear()
To add tabs
Expand|Select|Wrap|Line Numbers
  1. Dim myTabPage As New TabPage()
  2. myTabPage.Text = "TabPage" & (TabControl1.TabPages.Count + 1)
  3. TabControl1.TabPages.Add(myTabPage)
  4.  
Hope this helps
Jun 7 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Sabine Oebbecke | last post by:
Hi Experts! I have several forms and reports where controls get their values with 'Forms!MainForm!Control' or 'Forms!MainForm!Subform!Control' resp 'Forms!MainForm!Subform.Form!Control' which...
10
by: BBFrost | last post by:
We just recently moved one of our major c# apps from VS Net 2002 to VS Net 2003. At first things were looking ok, now problems are starting to appear. So far ... (1) ...
3
by: Arun Kumar | last post by:
Hi I am new to .NET. I have VS.NET 2003 and VS.NET 2005 Beta 2 Installed on my PC. I created a Windows Application which uses COM object. Its a simple test. When I Build the application on VS...
11
by: Lloyd Sheen | last post by:
Is there any one who has actually done this. I have now scanned more web articles about this with the realization that not one of them (including MSDN docs) outlines how to do this. This is...
5
by: news.microsoft.com | last post by:
Does anybody know if there is a component like the new outlook 2003 inbox. It has a really good drop down grouping feature, and visually looks very good. Thanks
0
by: Lee Ottaway | last post by:
Greetings I have been creating a new project in VB.Net 2002. As part of the project I designed a new user control that presents a string of numbers in the format I want to see them. It is in...
6
by: fripper | last post by:
I have just purchased a new system and am moving stuff off the old machine to the new ... including reinstalling VS .Net 2003 and several VB programs I had written. One of the programs uses a...
2
by: Deb | last post by:
The conversion of my department's 12 machines has gone really well and I have had no big problems with any of it. Now for another question -- Are there any new "goodies" in Access 2003 that are...
0
by: Rich | last post by:
(1) Is there a better place to pose the question below? (2) I am starting to convert my enterprise solution from VS 2003 (.NET v1.1.4322) to VS 2005 Professional (.NET v2.0.50727). The entire...
52
by: Neil | last post by:
We are running an Access 2000 MDB with a SQL 7 back end. Our network guy is upgrading to Windows Server 2003 and wants to upgrade Office and SQL Server at the same time. We're moving to SQL Server...
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: 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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.