Link to home
Start Free TrialLog in
Avatar of djadams
djadams

asked on

Tab Control Colour Change

I have a tab control page in an Access 97 containing approximately 20 pages and I need the tab control text to change colour when a user has clicked and entered that page. When the user exits the database the next user must encounter the same process. This will allow each user to know when they have visited and completed a particular page. Does anyone know how I might be able to apply this?
ASKER CERTIFIED SOLUTION
Avatar of devtha
devtha
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
What text do you want to change? Tab control itself doesn't have colour property.
Avatar of Trygve
Trygve

In addition to devthas suggestion, you will have to save the users "currentpage" into some table and read from this every time the user opens the form. This way you will be able to present him/her with the page the was active when the form closed down.
Avatar of djadams

ASKER

Devtha, there is no Gotfocus or Lostfocus event in the properties for tabs within a control page. Am I looking in the wrong place or have I misunderstood your answer? It is only the Tab label text that needs to change.
You can't change Tab label text.
I got a workaround.
I am sorry about the forecolor property.
What you can do is make a small bitmap file with text on it and then change the bitmap when you click the tabpage.
page1.picure = "c:\windows\help.bmp"

This will display the bmp as text HELP. on the tab page.

Devtha