Frage

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?

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top