Thread: change color for some words

  1. #1
    Registered User
    Join Date
    Dec 2007
    Posts
    385

    change color for some words

    I have a richtextBox with these words inside like this:

    one two three four five six
    one two five four six
    one four


    Is it possible to change the color for the words "four" in any way to blue.

    Is it possilbe to use these syntax for this purpose. I am not sure how to do this.
    Any ideas would be great
    Code:
    this->richtextBox1->Select();
    this->richtextBox1->SelectionColor = Color::Blue;

  2. #2
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    This is managed. It's better if you post in C# if you use managed since this is more meant for native.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  3. #3
    Registered User
    Join Date
    Dec 2007
    Posts
    385
    Yes ofcourse, I will do that.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Reference parameters and calculating change
    By Cstudent2121 in forum C Programming
    Replies: 6
    Last Post: 11-04-2005, 03:19 PM
  2. Change this program so it uses function??
    By stormfront in forum C Programming
    Replies: 8
    Last Post: 11-01-2005, 08:55 AM
  3. extracting words from an array of words
    By axon in forum C++ Programming
    Replies: 2
    Last Post: 04-02-2003, 11:21 PM
  4. Replies: 2
    Last Post: 11-08-2002, 03:22 AM
  5. Replies: 2
    Last Post: 09-04-2001, 02:12 PM