Due to me working on an application wich only has ONE Form with SSTabs it get rather crowded with the code. Now I would like to branch out with some of that SSTab code to one of my modules. Maybe somebody could help ???
VB Code:
Private Sub SSTab1_Click(PreviousTab As Integer)
'---
Select Case SSTab1.Tab
Case 0: '--- TAB ONE (0).
code ............
code ............
[COLOR=Red]This would be the section I like to Call from a module ???[/COLOR]
SSTab1.TabEnabled(1) = True
SSTab1.TabEnabled(2) = False
SSTab1.TabEnabled(4) = False
SSTab1.TabEnabled(6) = False
SSTab1.TabEnabled(7) = False
[COLOR=Red]...................[/COLOR]
code ............
code ............
Case 1: '--- TAB TWO (1).
code ............
code ............
[COLOR=Red]This would be the section I like to Call from a module ???[/COLOR]
I have used the code as per your copy I maybe do not understand the meaning of your comment "'format is controlName" but otherwise it should be OK.
I get the Error Msg. Compile error: Argument not optional and it highlights the SSTab1_Click Sub. I use VB 6.0 Enterprise Edition with (SP5).
With regards to the True/False input I have use it this way for the first Tab, and it should be different on every other Tab:
Well, finaly I had some time to test this code you guy's send here, and I found the mistake I made also.
!!! Each Tab has to be address with True or False. I had before:
This is the wrong way.
VB Code:
EnableTabs SSTab1, , True, True
This is the right way.
VB Code:
EnableTabs SSTab1, True, True, True
Attached a Zip File if somebody looks for something similar.
Thanks alot again.