-
Subclass
Let's draw a little picture. Let's say I want to avoid the hover-selection in a ListView. For example, when you can see the dotted-line rectangle that selects the items in a ListView (like when you press the Shift in the desktop and move the mouse to select several items). What's the message I should "remove" from the ListView to avoid this selection being made? Is there any other way to do this?
-
To prevent multiple selections, set the MultiSelect property of the ListView to False
-
Ok, but... would that avoid the dotted-rectangle selection as well? I'm not doing anything to get this "rectangle", but some stupid event seems to fire it and start selecting items. Would .MultipleSelect = False be a solution?
-
If you're referring to the Band that you can drag around several items to select them all - yes.
-
Ok, then... I'll set the MultiSelect to false and have a timer to set it back to true after some little time. Thanks! I'll let you know how it goes.
-
I have had this problem. the only way I could get around it was to place the focus to on an off screen item first thing after page load.
-
I tried something like this. Seems to be working. I'll let you know otherwise. Thanks for the tip.