highlight array of text in textbox

Basically what i am wondering is in win32 api textbox, how can have it so it highlights certain words in a textbox through an array.

What do you mean by a "win32 api textbox"?

The Win32 API has the edit control and the richedit control. You can't highlight just certain words with a normal edit control, but you can with a richedit control (using RTF).

This line is the default color\line
This line is red\line
This line is the default color

There is a TextBox in the .Net Forms library which can be used via C++/CLI, but that's another story. I haven't used it, but there's a RichTextBox which allows you to control the text color.

Writing colorized text to RichTextBox
Topic archived. No new replies allowed.