Solved

SSTAB, how do i do this, is it possible?

Posted on 2004-08-24
5
187 Views
Last Modified: 2008-02-01
if it possible to have it tell which tab is clicked? I'm trying to make it change a certain tabs caption if that tab is clicked.  

for example: if ONLY tab(8) is clicked
Form1.SSTab1.TabCaption(7) = "~"

0
Comment
Question by:andyakira
  • 3
  • 2
5 Comments
 
LVL 5

Accepted Solution

by:
Z03niE earned 250 total points
Comment Utility
If a tab is cliked then it'll be active , right. So I think you just have to find out which tab is active when sstab is clicked.
Maybe you can use something like this :

Private Sub SSTab1_Click(PreviousTab As Integer) ' previous tab is the previous active tab
    MsgBox Form1.SSTab1.Tab                                        ' show the curent active tab
    'maybe you would like to add some code line like
    If Form1.SSTab1.Tab = 8 Then Form1.SSTab1.TabCaption(7) = "~"
End Sub

Hope that help.

0
 

Author Comment

by:andyakira
Comment Utility
yep that did the trick, thank you.  is tehre a way to make a certain tab text bold?
0
 
LVL 5

Expert Comment

by:Z03niE
Comment Utility
You can change the font type in the font property.Font size, font type and boldness.
But this action may cause dificulty to differ active and non active tab, cause sstab use bold font to indicate active tab.
0
 

Author Comment

by:andyakira
Comment Utility
the reason i need this is so the user gets notified of new messages. like if new messages come in, the message tab becomes bold. ;(. but its not possible to do with sstab1 right?
0
 
LVL 5

Expert Comment

by:Z03niE
Comment Utility
I also think so.
But, try posting a new question regarding this. Who knows other experts have some solutions.
That's what we are here for, isn't it. To find solutions for our IT problem. :)
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now