change color for some words

This is a discussion on change color for some words within the Windows Programming forums, part of the Platform Specific Boards category; I have a richtextBox with these words inside like this: one two three four five six one two five four ...

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

    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をこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,411
    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
    383
    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, 02:19 PM
  2. Change this program so it uses function??
    By stormfront in forum C Programming
    Replies: 8
    Last Post: 11-01-2005, 07:55 AM
  3. extracting words from an array of words
    By axon in forum C++ Programming
    Replies: 2
    Last Post: 04-02-2003, 10:21 PM
  4. Replies: 2
    Last Post: 11-08-2002, 02:22 AM
  5. Replies: 2
    Last Post: 09-04-2001, 02:12 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21