The TabControl control is a container control that allows you to display multiple dialogs on a single form by switching between the tabs. This is analogous to using dividers in a notebook.
Each tab acts in a similar manner to a http://en.csharp-online.net/Panel control and is its own type of object called a http://en.csharp-online.net/TabPage. These tabs are located in the collection stored in the TabPages property of the TabControl.
Hiding Tab Pages
A TabPage does not have a Visible property that does anything meaningful. Therefore in order to hide/show a TabPage, the TabPage must be removed:
tabControl2.TabPages.Remove(tabPage);
or added accordingly:
tabControl2.TabPages.Add(tabPage);
If you want to restrict the user from performing any operations on the tabpage you may try this:
TabPageSMS.Enabled =
False this will disable all the controls on the tabed page