Visual Basic TextBox Controls

pts.
Tags:
Development
How can I change the font/look of text added to a textbox without changing all of the text in the box?

Answer Wiki

Thanks. We'll let you know when a new response is added.

R,

Without a custom control, two possible ways are:

1. Use a rich text box control and insert formatting codes around text you want to change;

2. Overlay a transparent background second control with a higher “Z order” with the word in the right position in a different font. The usefulness of this disappears if you also use a screen re-sizer in your apps.

:) Gene

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Ruhkick
    Thank you for your replies. The RichTextBox control did the trick.
    0 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following