I’ve been having a problem with Listbox events for some time.
Scenario: I have a populated listbox with multiple columns. When the user clicks on a row, I use the CellClick event to copy data from the row’s cells into a form for editing.
When a row is clicked, nothing happens; when it is clicked again, then the form is populated. And if row x is clicked followed by row y, then row x’s data is copied to the form instead of row y’s.
This behavior is the same if I place the code in the MouseDown event.
I recall doing this same thing in some apps some time ago and everything worked correctly. Any ideas what I’m doing wrong and how to fix this?