By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 1,732 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

Changing the color of text in a textbox? VB6

AaronL
P: 99
Me again,

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?

Thanks!
Apr 23 '08 #1
Share this Question
Share on Google+
2 Replies


lotus18
100+
P: 866
Me again,

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?

Thanks!
Are you referring to a vb6 ide?

Rey Sean
Apr 24 '08 #2

Expert 5K+
P: 8,434
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).
Apr 24 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.