Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can i hide a TabPage in a TabControl?

Status
Not open for further replies.

Mausolo

Programmer
Jul 2, 2002
16
0
0
ES
That's the question. I am trying with:
.Hide()
.Visible=false
an other.

Could anybody help me?

Thanks.
 
Hi Mausolo

You can do it like this

If true then
tabcontrol1.TabPages.Remove(tabpage1)
Else
tabcontrol1.TabPages.Add(tabpage1)
End If

you will not lose any controls inside a tabpage by doing this..

docspidy

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top