Results 1 to 5 of 5

Thread: [RESOLVED] Changing the background of selected text in RTFTextBox

  1. #1

    Thread Starter
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Resolved [RESOLVED] Changing the background of selected text in RTFTextBox

    Can you change the color of the background of just the area of the selected text? I have tried and the whole background of the rtftextbox changes. Is there a way to do this?

  2. #2
    No place like 127.0.0.1 eyeRmonkey's Avatar
    Join Date
    Jul 2005
    Location
    Blissful Oblivion
    Posts
    2,306

    Re: Changing the background of selected text in RTFTextBox

    I've had a decent amount of experience with RichText Box's and I am pretty sure it isn't possible, then again I learn something new everyday... except more like 20 things.
    Visual Studio 2005 Professional Edition (.NET Framework 2.0)
    ~ VB .NET Links: Visual Basic 6 to .NET Function Equivalents (Thread) | Refactor! (White Paper) | Easy Control for Wizard Forms | Making A Proper UI For WinForms | Graphics & GDI+ Tutorial | Websites For Free Icons
    ~ QUOTE: Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. -Rich Cook

    ~ eyeRmonkey.com

  3. #3
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Changing the background of selected text in RTFTextBox

    This was done a while ago for me, to prove that it could be done. It's not perfect, but does illustrate the point. Thanks, Phil.
    Attached Files Attached Files

  4. #4

    Thread Starter
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Changing the background of selected text in RTFTextBox

    dglienna,

    Thanks, It works perfectly.

  5. #5
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Changing the background of selected text in RTFTextBox

    Glad it helped. I had to look for it, and then it was in a zip file that I had to test. Now it's part of my collection

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width