Click here to Skip to main content
16,006,768 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i have created a tab control
when you creat a tab control it will give you tab page
my question is can hide this tabpage



comment by Smithers-Jones:
OP added this as an answer (I deleted his answer and added its content here):


ok ty
i know i am annoying with my question but
lets say i have tab page1 that text box and 3 or 4 buttons
and i created a button to add tab page 2
can i have the same info for the tab page 2 from tab page 1 to show up automatically
and sry for the bad english
Posted
Updated 27-Apr-11 23:06pm
v2
Comments
Smithers-Jones 28-Apr-11 5:15am    
ace300, you can always improve your question to add more content instead of adding a fake solution. Just click "Improve question" on the lower right.
Sergey Alexandrovich Kryukov 28-Apr-11 10:18am    
Tag it! Language, platform, UI library! As is your question makes little sense. Do you expect anyone to read your mind or answer for all possible platforms?
--SA

1 solution

AFAIK, you cannot hide a tabpage: the Visible property is masked so it doesn't appear in intellisense, but it doesn't work properly if you use it anyway (it hides the controls on the tabpage, but only until you switch away and back again). The Hide and Show methods do not work either.

The only way to add this, is to remove the page from the TabControl.Controls list and add it back when you want to show it.

Nasty!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900