?
Solved

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

Posted on 2004-08-24
5
Medium Priority
?
211 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 5

Accepted Solution

by:
Z03niE earned 1000 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
Suggested Courses
Course of the Month8 days, 10 hours left to enroll

764 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