Changing the color of text in a textbox? VB6

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AaronL
    New Member
    • Jan 2007
    • 99

    Changing the color of text in a textbox? VB6

    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!
  • lotus18
    Contributor
    • Nov 2007
    • 865

    #2
    Originally posted by chelf
    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

    Comment

    • Killer42
      Recognized Expert Expert
      • Oct 2006
      • 8429

      #3
      Originally posted by chelf
      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).

      Comment

      Working...