Solved

Set color to text on Statusbar

Posted on 1998-11-21
5
311 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…

776 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