My project is .NET/WinForms.
I have a list view which is always filled with items. I would like it to have selection always. However, if I click on an empty area below list view items, it looses selection.
The list has multiple selection = true and hide selection = false.
You need to prevent the native control from seeing the mouse click so it won’t unselect an item. Add a new class to your project and paste the code shown below. Compile. Drop it from the top of the toolbox onto your form, replacing the existing one.