You can not do like all controls.
These are the some of the tricks to do
'Hides the second tabpage.
TabControl1.Controls.Remove(tabPagename)
TabControl1.Controls.Remove(tabPagename)
Or you can write like this to hide second tab page in tab control.
TabControl1.Controls.Remove(TabControl1.TabPages(1))
you can also add tab pages at run time by..
TabControl1.Controls.Add(New TabPage("TabPage2"))
No comments:
Post a Comment