Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

How to make TabPage in TabControl disabled/invisible?

 

TabConltrol1.TabPages(0).Visible=False and

TabConltrol1.TabPages(0).Enabled=False

 

have no effect on tab "ears"

  • *Gurus*
Posted
I don't believe you can hide or show individual tabs, as they're not actual controls. What they are is an enumeration telling the framework how to render a tabbed dialog. So, with that said, you would need to remove the tab from the enumeration altogether to hide it, and add it back in to show it.
Posted

Thank you. That makes sense. One problem, though. When I want to add it back I have to use TabControl1.Controls.Add (t)

and it adds the page to the end. I don't see any property that will allow me to show the tab at a specific place. DO you know how to do it?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...