Results 1 to 4 of 4

Thread: SSTab Click event problem [Resolved]

  1. #1

    Thread Starter
    PowerPoster jdc2000's Avatar
    Join Date
    Oct 2001
    Location
    Idaho Falls, Idaho USA
    Posts
    2,399

    Resolved SSTab Click event problem [Resolved]

    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:
    1. Private Sub SSTab1_Click(intIndex As Integer, intPreviousTab As Integer)
    2.  
    3.     If SSTab1.Tab = 3 And intPrintFormSave < 0 Then cmdApply.Enabled = False
    4.     If SSTab1.Tab = 3 And intPrintFormSave < 1 Then cmdSave.Enabled = False
    5.  
    6. End Sub
    Last edited by jdc2000; Dec 10th, 2004 at 09:02 PM.

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,710

    Re: SSTab Click event problem

    [color=navy]How did you add the procedure? This is what I get when I add one from the
    dropdown in the IDE.[/code]
    Code:
    Private Sub SSTab1_Click(PreviousTab As Integer)
    
    End Sub
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3

    Thread Starter
    PowerPoster jdc2000's Avatar
    Join Date
    Oct 2001
    Location
    Idaho Falls, Idaho USA
    Posts
    2,399

    Re: SSTab Click event problem

    Thanks for the clue.

    The following works OK:

    VB Code:
    1. Private Sub SSTab1_Click(PreviousTab As Integer)
    2.  
    3.     If SSTab1.Tab = 3 Then
    4.         If intPrintFormSave = 0 Then cmdApply.Enabled = False
    5.     Else
    6.         cmdApply.Enabled = True
    7.     End If
    8.  
    9. End Sub

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,710

    Re: SSTab Click event problem [Resolved]

    No prob. Glad to help.

    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width