Results 1 to 2 of 2

Thread: ListBox or ListView with syntax highlighting

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2010
    Posts
    26

    ListBox or ListView with syntax highlighting

    Hello,

    I was wondering if there is a way to implement syntax high lighting in a ListBox or ListView. I know this is possible with a Rich Text Box, but I would like to insert this feature into a ListView or ListBox. Is there any way to insert rich text font (RTF) into one of those controls?

    Thank you.

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: ListBox or ListView with syntax highlighting

    Some clarification. No such thing really as a RTF font. Highlighting is done in RTF controls via tags by the user (or via control properties) and background drawing by the control. Listbox backcolor can be changed for the entire list, not a portion of text or a single list item (without subclassing). ListViews are pretty much the same thing, but individual items can be back colored though it applies to the entire item/subitem. In short, no easy solution and any solution would probably be difficult at the very least.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

Tags for this Thread

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