Multiline textbox - change color for partial text

Posted on 2007-10-06
Last Modified: 2013-12-20
Dear all,

I have a multiline textbox on my form.
Is there a way to change the color of some of the text during runtime?

Currently as far as I know, you can only change color and font settings for the entire textbox, but is it possible to apply / change these settings on SOME of the text only?

Thanks in advance!
Question by:nahumba
    LVL 46

    Accepted Solution

    Hi nahumba,

    You are correct. For a regular textbox, only the entire text can be changed. To change the color of only certain text within a textbox, you'll need to use a RichTextbox.



    Author Comment

    thanks Wayne

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Suggested Solutions

    You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
    Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
    Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
    This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now