Question

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?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top