03-26-2021 07:05 AM
Hello, my user interface consists of several list boxes. Now, when I make a double in any of them, I want to copy the selected item to a specific destination. Is there a possibility to create a single doubleclick event for all listboxes? For this I need to distinguish which listbox has been clicked. I would like to prevent generating N event cases for N listboxes.
Regards.
Solved! Go to Solution.
03-26-2021 07:10 AM
03-26-2021 10:27 AM
Since you are only interested in the item, you can index into the items of the listbox by reference. You get the name of the double-clicked element, no matter which listbox. (Same code to handle an unlimited number of listboxes!)