Close Specific ssTab!?

Salmonski
08-06-2009, 07:16 PM
Just wondering how i would go about closing a specific tab in say a collection of 5 tabs in 1 ssTab control?

something like...

Private Sub Command1_Click()
sstab1.tab.close
End Sub

or something?

Cheers

jerome_gail26
08-06-2009, 08:49 PM
Close Specific ssTab


What do you mean close specefic tab? (I could be wrong) You cannot close specific tab but you can hide it


SSTab1.Visible = False


SSTab works with index.

Example: I have 1 ssTab, it has 4 tab (Tab0,Tab1,Tab2,Tab3). First tab's (Tab0) index is 0, Second tab's (Tab1) index is 1 and so on.

to show first tab

SSTab1.Tab = 0 'Where zero represents the index of tab.


to show Second tab

SSTab1.Tab = 1


to show Thrid tab

SSTab1.Tab = 2

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum