Listbox Multi-Select Without Ctrl Key
Posted on 2004-10-20
When a Listbox is set to multi-select, I know you can select/deselect individual items by single-clicking on them with the Ctrl key held down.
Is it possible to do it without using the Ctrl key - for example when using a touch sensitive screen when a keyboard isn't available?
I have a button on the form which acts as a toggle. Using this button's Tag property I can effectively turn a 'virtual' Ctrl key on and off, but I'm not sure how to go about acting on this toggle to select/deselect items on the list.
(For those of you not familiar with touch screens, a finger press on the screen simply generates a single mouse click at that screen X/Y position).
I've tried using the OnMouseDown event using an If...Then to check if the button Tag property is 0 or 1, but a single click still deselects all the other items.
Any suggestions please?