Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Set color to text on Statusbar

Posted on 1998-11-21
5
Medium Priority
?
321 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 60 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

877 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