Hi guys,
I have a tab control that I have text files in them. If one of files in the middle is closed how do I delete that tab.
eg 3 tabs I want to kill the 2nd one.
Any help is appreciated.
Wayne
Printable View
Hi guys,
I have a tab control that I have text files in them. If one of files in the middle is closed how do I delete that tab.
eg 3 tabs I want to kill the 2nd one.
Any help is appreciated.
Wayne
you can change the number of tabs at runtime using the tabs property :
sstab.Tabs=N
but i don't know how to remove a certain tab.
Thanks for your reply. I have just about decided to leave it blank and load the next file into it or move all the tabs ahead down and delete the last one.
Wayne
You can hide the tab instead of deleting it. That way all your indexes will stay the same.
'This hides the 4th tab (0-based)
tab1.TabVisible(3) = False
Thanks
I hadn't thought about that.
Wayne