Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6010667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:08:58+00:00 2026-05-23T02:08:58+00:00

It seems the only options available to do multi-color on a string is either

  • 0

It seems the only options available to do multi-color on a string is either a bunch of label controls cleverly grouped together or to use a RichTextBox and play with the font properties as text is added to the control.

What I am looking for instead is some kind of control that can render some style of control codes out as color. Consider bash codes:

NORMAL='\e[0m'
GREEN='\e[0;32m'
BLUE='\e[0;34m'

echo -e "This text is ${GREEN}green${NORMAL} and this text is ${BLUE}blue${NORMAL}"

In the above, the words ‘green’ and ‘blue’ will be colorized with their respective colors. I was wondering if there was a control with some kind of feature like this, or will I have to code something myself?

Note, I only have the Express copy of VB 2010, and I would very much like to avoid third-party controls.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T02:08:59+00:00Added an answer on May 23, 2026 at 2:08 am

    Are you specifically looking for something that understands ANSI control codes, or just something that accepts markup? If you just want something that accepts markup, you can use the RichTextBox.Rtf property to set all the control codes and text with a single string.

    See http://msdn.microsoft.com/en-us/library/aa140277(v=office.10).aspx for the RTF specifications.

    I would recommend programmatically generating a sample document, then reading the Rtf property and using the resulting RTF code as a template for what you should generate. For reference, here’s a simple RTF document that has two color of text (plus the default) in Consolas (which fallback to Courier New):

    {\rtf1\deff0{\fonttbl{\f0\fmodern\fcharset0 Consolas {\*\falt Courier New};}}
    {\colortbl ;\red255\green0\blue0;\red0\green176\blue80;}
    \cf1 Hello\cf0 , \cf2 world\cf0 .
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

serial.write() method in pyserial seems to only send string data. I have arrays like
Any options out there? Google Static Maps with SSL (HTTPS) is only available to
I'm trying use an object which wasn't available until SDK level 5. It seems
My session seems to only be valid in the current window/tab. Also it seems
Form validation for check boxes only seems to be working in IE....? Anyone have
I have a weird issue that only seems to be affecting IE 7. The
I've been investigating this issue that only seems to get worse the more I
For some reason, siginterrupt() only seems to set the behaviour for the first signal
When I run the following code, it only seems to be downloading the first
Since AS3 does not allow private constructors, it seems the only way to construct

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.