Вопрос

when i disable a listview in vb.net by setting Enabled=False, the scrolling is disabled too so i can't see all the items in the list. Is there a way to disable user interaction on the list but preserve the scrolling so that the user can't select any item but can drag the scrollbars?

Это было полезно?

Решение

Are you sure you want to do this? You will end up with a list view that looks like it should function normally, but users will not be able to select any items.

This could potentially be very confusing.

If this is really what you want (and I advise against it), you could add a handler to the ItemSelectionChanged event that deselects whichever item has just been selected.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top