We help IT Professionals succeed at work.

Textbox control

Medium Priority
345 Views
Last Modified: 2013-12-16
I would like to create my own "Homesite" HTML Editor.  I am looking for a Text Edit control that allows me to have multicolor text in a single TextBox.
Comment
Watch Question

Commented:
whay not using picture contorl?

Commented:
whay not using picture contorl?

Author

Commented:
Edited text of question
Commented:
Microsoft's Richtext control richtx32.ocx supports multicolor text.  Here is some sample code to change color and font of a portion of a richtext control.

txtControl.Text = txtControl.Text & vbCrLf & "Error Description Returned: " & strTemp
txtControl.SelStart = pos
txtControl.SelLength = Len(txtControl.Text) - pos
txtControl.SelBold = True
txtControl.SelColor = QBColor(12)
txtControl.SelLength = 0

All you have to do is set the selstart and sellength and change the color using selcolor.  

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Commented:
again, you can type a diffrent color text into
a picture contorl, but ccarlin answer is better,
if you want to deal with ocx's
MSIMAN

Commented:
again, you can type a diffrent color text into
a picture contorl, but ccarlin answer is better,
if you want to deal with ocx's
MSIMAN
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.