Hi,
Can anyone please tell me how to disable or Grey out the selected item in the listbox?
Thanks
Printable View
Hi,
Can anyone please tell me how to disable or Grey out the selected item in the listbox?
Thanks
hey,
eg. lstBooks.enable = False
lstBooks -> being the name you gave to the list box
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!
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