Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > changing text color in statusbar


Reply
 
Thread Tools Display Modes
  #1  
Old 07-22-2002, 03:26 AM
falcore20 falcore20 is offline
Newcomer
 
Join Date: Jul 2002
Location: Canada
Posts: 24
Default changing text color in statusbar


Hi,

I have a status bar called statusbar1.

in the first panel i have this:

USER - <currentUser>


where <currentUser> is a variable that contains a string.

How do i make it so USER is in black forecolor, and my variable is in red?

Thanks

oh, also i had another question. Totally unrelated but it's better than reposting i guess.

How do i eliminate the quotes when i insert a string variable into my sequential file?

when i do this i get quotes around everything in the file.

OPEN "log.txt" FOR OUTPUT AS #1
WRITE #1,currentUser
CLOSE#1

currentUser contains a string.

Thanks again!

Last edited by falcore20; 07-22-2002 at 03:34 AM.
Reply With Quote
  #2  
Old 07-22-2002, 03:44 AM
Genna
Guest
 
Posts: n/a
Default

maybe you should try
currentUser = replace(currentUser, chr(34),"")

chr(34) is quote symbol
Reply With Quote
  #3  
Old 07-22-2002, 03:46 AM
Flyguy's Avatar
Flyguy Flyguy is offline
Lost Soul

Super Moderator
* Guru *
 
Join Date: May 2001
Location: Vorlon
Posts: 18,928
Default

About the text in the statusbar, you can't change the text color. You have only 1 font setting for all texts on all panels.

Use the Print statement instead of the Write statement
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->