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

Thread: ListBox

  1. #1
    Join Date
    Aug 2001
    Location
    TN,USA
    Posts
    2

    ListBox

    Hi,

    Can anyone please tell me how to disable or Grey out the selected item in the listbox?

    Thanks


  2. #2
    Join Date
    Sep 2001
    Posts
    6

    Re: ListBox

    hey,

    eg. lstBooks.enable = False

    lstBooks -> being the name you gave to the list box


  3. #3
    Join Date
    Sep 2001
    Location
    Calgary Canada
    Posts
    1

    Re: ListBox

    i think what you were trying to say was that you wanted to grey out individual rows in a listbox, not the whole thing. i've been trying to figure that out too...not sure if you can do it with the vb6 listbox....or if you'll have to import another listbox control. let me know if you can figure it out!


  4. #4
    Join Date
    May 2001
    Location
    Canada
    Posts
    182

    Re: ListBox

    I am afraid we can implement that through ListBox. As a workaround, you can use a one column listview, and set the HideColumnHeaders property to True. It will look like a listbox. Then you can change the forecolor of individual item.


    Regards,

    Michi

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