I have an SSTab control on a form, and I want to use the Click event to detect when a tab is clicked on. However, when I add a Sub to my program to detect this, I get the following error:
Compile error:
Procedure declaration does not match description of event or procedure having the same name.
Any ideas as to what might be causing this would be appreciated. I'm sure it is something simple, but my SSTab documentation is lacking.
Thanks.
VB Code:
Private Sub SSTab1_Click(intIndex As Integer, intPreviousTab As Integer)
If SSTab1.Tab = 3 And intPrintFormSave < 0 Then cmdApply.Enabled = False
If SSTab1.Tab = 3 And intPrintFormSave < 1 Then cmdSave.Enabled = False
End Sub