Bie guys
Im sorry for asking a silly question,
How do i remove a tab from a sstab control, the sstab has 4 tabs and i want to remove one of them, how do i go abt it.
It looks a silly question to me but funny enough i cant solve it.
I don't think you can remove them programatically, you need to remove them in the design environment. You can make each tab invisible programatically though.
The design-time interface for the SSTab is frustrating in the extreme, especially if you want to delete the first of many tabs because the only control you've got over the layout is by altering the TabCount, which means you always lose the right-most ones first. You can't delete the first tab and shift all the child elements back one tab.
I find it's good practice to use a container on each tab and then place the child elements within each container, so that if you need to move things around you only need to move the containers.
- Andy
___________________________________________________________________
If you think nobody cares you're alive, try missing a couple of mortgage payments
Thank you guys,
i want to remove on design-time.
i go SSTAB properties -> Tab count.there is no custom. When i change the count it gives an invalid propery value error. Fortunately for me it is the last tab and i have deleted every control on it.
Thank you guys there was a label which was invisible on the tab, thats why the invalid property error, Thank you guys.
But is there a way i can expand the actual tab(the one to be clicked), there is a space left by the removed tab and it doesnt look good.
- Andy
___________________________________________________________________
If you think nobody cares you're alive, try missing a couple of mortgage payments
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.