Solved

Set color to text on Statusbar

Posted on 1998-11-21
5
309 Views
Last Modified: 2010-05-03
Hi,
  I am trying to set a color to the text displayed on the VB standard Statusbar control. This happens when iam showing  error messages. Does VB have any property to attach color to strings at runtime and display them simulatneously? Pls. help.

Ravicha
0
Comment
Question by:ravicha
  • 3
5 Comments
 
LVL 1

Accepted Solution

by:
alesh earned 20 total points
ID: 1446091
The answer is NO. The status bar control has no colors properties at all. Only way you could do this, perhaps you could call this a workaround but i'm not 100% it will work, is to put a textbox on the status bar, make the background color the same as status's bar and then display error messages in the textbox, which allows you to set font colors.
One thing you would have to be carefull about is the resize of form, but not too much if at all.

Hope this could help you enough.
0
 

Expert Comment

by:vip110598
ID: 1446092
ravicha,
YES their is a very simple way.
Just let me get to work and I will post you the answer.
0
 

Author Comment

by:ravicha
ID: 1446093
Alesh,
Thanks for suggestion. Your idea works but can i tag color to some string and display that in the statusbar, like writing a function  that gives the string the required color. I know it is asking for more but it makes me avoid using any VB controls like textbox on the statusbar. I have only one form that has the statusbar that are used by the others too. Hope you got my point.
0
 

Author Comment

by:ravicha
ID: 1446094
Alesh,
Thanks for suggestion. Your idea works but can i tag color to some string and display that in the statusbar, like writing a function  that gives the string the required color. I know it is asking for more but it makes me avoid using any VB controls like textbox on the statusbar. I have only one form that has the statusbar that are used by the others too. Hope you got my point.
0
 

Author Comment

by:ravicha
ID: 1446095
Vip,
I am waiting for your answer.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

707 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