-
Dec 10th, 2004, 08:42 PM
#1
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:
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
Last edited by jdc2000; Dec 10th, 2004 at 09:02 PM.
-
Dec 10th, 2004, 08:50 PM
#2
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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
-
Dec 10th, 2004, 09:01 PM
#3
Re: SSTab Click event problem
Thanks for the clue.
The following works OK:
VB Code:
Private Sub SSTab1_Click(PreviousTab As Integer)
If SSTab1.Tab = 3 Then
If intPrintFormSave = 0 Then cmdApply.Enabled = False
Else
cmdApply.Enabled = True
End If
End Sub
-
Dec 10th, 2004, 09:14 PM
#4
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|