SSTab Click event problem [Resolved]-VBForums
Results 1 to 4 of 4

Thread: SSTab Click event problem [Resolved]

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Idaho Falls, Idaho USA
    Posts
    735

    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
    Super Moderator RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,164

    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!
    Star Wars Gangsta Rap 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 Core 2 Extreme Ed., 2 WD Raptor 10K RPM 300 GB HDs, 2 GBs DDR2 667 MHz RAM, 2 Viewsonic 24" LCDs, Windows 7 SP-1/Windows 8.1, Office 2010, VS 2013

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Idaho Falls, Idaho USA
    Posts
    735

    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
    Super Moderator RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,164

    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!
    Star Wars Gangsta Rap 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 Core 2 Extreme Ed., 2 WD Raptor 10K RPM 300 GB HDs, 2 GBs DDR2 667 MHz RAM, 2 Viewsonic 24" LCDs, Windows 7 SP-1/Windows 8.1, Office 2010, VS 2013

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.