Results 1 to 3 of 3

Thread: [RESOLVED] Highlighting a item in a ListBox

  1. #1

    Thread Starter
    Addicted Member seditives's Avatar
    Join Date
    Jan 2011
    Location
    South of England
    Posts
    151

    Resolved [RESOLVED] Highlighting a item in a ListBox

    Hi, Just one straight forward question that's been playing on my mind how would I go about highlighting a item in a ListBox if this atoll posible????

    I dont mean the sort of highlight you get when you select a item. A item that will be highlighted and cant be clicked on.

    For example:

    Item1
    Item2
    Item3
    Item4
    Item5
    Item6
    Item7
    Item8

    I can still select Item 1, 2, 3, 5, 6, 7, 8 but not Item 4 as its colour of the text has been changed to blue.
    A subtle thought that is in error may yet give rise to fruitful inquiry that can establish truths of great value. - Isaac Asimov

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

    Re: Highlighting a item in a ListBox

    Nope. Not with a standard VB listbox. You have 2 options I can think of

    1) Find or create a custom listbox control
    2) Use a ListView instead -- much easier
    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}

  3. #3

    Thread Starter
    Addicted Member seditives's Avatar
    Join Date
    Jan 2011
    Location
    South of England
    Posts
    151

    Re: Highlighting a item in a ListBox

    TY LaVolpe but I am going to go with my plan B which is to take the item in the ListBox away all together. The function of my ListBox wont be compromised. Its just that highlighting it would of been visually better. I suppose its functionality over looks at the end of the day with programming. lol
    A subtle thought that is in error may yet give rise to fruitful inquiry that can establish truths of great value. - Isaac Asimov

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