I'm writing an HTML editor and I want to be able to change the color of HTML tags in a VB6 textbox. Any ideas as to how I could do this?
In VB6, you can change the colour of text in a text box by changing the
ForeColor property. But as you might expect, this changes
all of the text. To change the formatting of
part of the text, you would need to use a different control. The most obvious choice would be the
RichTextBox control.
You can (most likely) find this under
Project | Components | Microsoft Rich Textbox Control 6.0. (Version number may vary, of course).