Solved

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

Posted on 2004-08-24
5
190 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
ID: 11888832
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
ID: 11889178
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
ID: 11889201
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
ID: 11889435
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
ID: 11889490
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Input past end of file vbs script 9 82
MsgBox 2 47
Adding to a VBA? 6 62
using web browser with BING 40 110
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…

896 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

17 Experts available now in Live!

Get 1:1 Help Now