Q:

VB.Net Hide Tabpage

Ive seen some discussion on here about how to hide tabs in a tabcontrol but they all seem to be in C or some variant. I havent seen one for vb.net (i cant do C)
What i want to do is hide or disable all some of the tabs till the user has logged in. 
Ive sorted out the login and logout. All i need to do is add the code to enable/disable some tabs until the user has logged in.
Anyone know a good way to do this?
WinForms btw

A:

You just add and remove TabPages from the TabControl through the TabPages collection:
TabControl1.TabPages.Add(myTabPage)

and to remove it:
TabControl1.TabPages.Remove(myTabPage)

Note: Removing a TabPage does not dispose it, it just removes it from the TabPage collection.

