CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: Backcolor

  1. #1
    Join Date
    Feb 2000
    Location
    Belgium
    Posts
    27

    Backcolor

    Does anybody know how to change the color af the selected text in a RTFbox ,
    not the backcolor of the whole textbox, just the selected text ?
    Something like in Word you can use a marker.


    Thank you


  2. #2
    Join Date
    Jan 2000
    Location
    MO, USA
    Posts
    1,506

    Re: Backcolor

    I think there is a SelColor property of the RTB. I've never used it, but I think i remeber seeing it in the object browser.

    HTH,
    John

    John Pirkey
    MCSD
    www.ShallowWaterSystems.com
    John Pirkey
    MCSD (VB6)
    http://www.stlvbug.org

  3. #3
    Join Date
    Feb 2000
    Location
    Belgium
    Posts
    27

    Re: Backcolor

    I know , but that changes the FOREcolor of the selected text.
    I wanna change the BACKcolor

    Thanx anyway


  4. #4
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: Backcolor

    You can't do this with the RTF control that microsoft provide with VB - you can however, download a free RTF control (based on RichEdit2.0) from http://vbaccelerator.com - this supports all the standard RTF stuff like tables, background bitmaps, hyperlinks etc. It also comes with all the source code.


    Chris Eastwood

    CodeGuru - the website for developers
    http://codeguru.developer.com/vb

  5. #5
    Join Date
    Feb 2000
    Location
    Belgium
    Posts
    27

    Re: Backcolor

    thanx


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

Featured