Hiding a tab in a TabControl?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I hide a tab in a TabControl that contains 3 tabs

I tried the following and it didn't work

tabTab2.Hide(
tabTab2.Visible = Fals

Amjad
 
Hi,

You have to remove the tabpage from the tabcontrol.
TabControl1.TabPages.Remove(TabPage2)


Ken
 
Thanks for your reply Ken.
I don't want to remove the tab page. I just want to hide it (and its controls) and then show it again later.
Removing the tab destroys the controls that have been already created in it, right?

Is it possible?
 
* "=?Utf-8?B?QW1qYWQ=?= said:
How do I hide a tab in a TabControl that contains 3 tabs?

Remove it from the TabControl's 'TabPages' collection.
 
My apologies.. removing the tab page doesn't destroy its controls as I thought before

It worked fine

Thanks everyone
Amja
 
Back
Top