
SSTAB:Problem with creating tabs at runtime
On Fri, 31 Jan 1997 19:40:22 GMT, "Himanshu Sharma"
Quote:
>I am using SSTab. I am setting the No of tabs at runtime depending on data.
>In the program I am making each tab current (by setting the .TAB property 0
>to no of tabs). However it is not happening!
What do you mean by making eact tab current? Only one tab can be
current at a time.
Anyways, to add a tab just increase the .Tabs property, perhaps the
.TabsPerRow property too.
Quote:
>After I set the tab value in the Form_Load, I check it and it still shows 0
>(the value set in property window). In fact if I change the tab value in
>the property window, that is the value that remains and doesn't change in
>the program until Form_Load is completed.
>When tabs are created at design time there is no problem.
>Any workarounds? Any help will be appreciated.
A small example:
Private Sub Form_Initialize()
^^^^^^^^^^
Dim tabno As Integer
SSTab1.Tabs = 5 ' make 5 tabs
SSTab1.TabsPerRow = 5
'Set the caption of each tab.
For tabno = 0 To SSTab1.Tabs - 1
SSTab1.Tab = tabno
SSTab1.Caption = "Dynamic Tab " & tabno
Next tabno
End Sub
Regards
Nicolai T?ll?se
-----
They say I'm arrogant.
But I know better!
Nicolai T?ll?se,
http:\\www.{*filter*}net.dk\users\nico