Hi All,
Anyone know how to mimic a keypress within the mousedown event? When the user left clicks the mouse on a listbox, I want to add a CTRL press with it.
Since the Ctrl key is only a modifier and doesn't fire an event, could the behavior you're looking for be as simple as setting the ListBox's SelectionMode property to MultiExtended?
Almost,
I am doing a touchscreen application that utilizes the listbox control. The user may select one or more items, sometimes in a consecutive order, sometimes not. I would like to have it so the user can drag down the list and select all items touched without having to touch/remove, touch /remove. The multiextended selection mode allows for this, but if they select items 1-10, then item 15, when they touch item 15 the previous items are then cleared. If the control key is depressed, it will select all items properly.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.