Click to See Complete Forum and Search --> : ListBox


Karunav
August 3rd, 2001, 01:57 PM
Hi,

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

Thanks

angelis
September 6th, 2001, 10:21 AM
hey,

eg. lstBooks.enable = False

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

bswiftly
September 19th, 2001, 04:48 PM
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!

michi
September 19th, 2001, 05:14 PM
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