I added 16 Rows to the ListBox using Copy in TextEdit (so a 16 lines / 4 Columns text) and Paste in the ListBox. All the copied text is correctly filled (Rows and Columns appears where expected.
I clicked in Row 0, 5.
I clicked in Column 1, 2, 3 (on a 4 Columns ListBox).
You can do it more easily. Just have a couple of properties save the column and row of the last click. That’s also the cell which was double clicked, cause when you double click, you do not move the mouse.
Yes, you copied the code for a double click in a listbox which is placed on a container control. Since Me.Parent is throwing a NilObjectException, your listbox is not placed on a container control but directly in the window. The first example in the LR is for that, you chose the second, which is for a listbox on a container control.
No. I take the code from the docs and put it in the ListBox that is actually the only control of the window.
This used to works times ago.
PS: I do not tell who is throwing a NilObjectException, I only say what I get
AND the winner is Eli: I do not noticed this morning that there were two “similar” lines in the screen. My (old) eyes where probably still sleeping :(.