VS2008 Hiding Tabs

bharanidharanit

Well-known member
Joined
Dec 8, 2008
Messages
53
Location
India
Programming Experience
1-3
Hello sir,
I am having tabcontrol in which i want only to hide tabs.
Consider i am having 2 tabpages. I want to hide only tabs of tabcontrol not tabpages.
Then i will show the tabpages with this coding on button click.
TabControl1.SelectedIndex = 1
 
If you're only talking about a few tab pages then you could just add/remove them from the tab controls's tabpage collection as needed.
 
Back
Top