Patricia Cu
Programmer
Hello all,
For some unknown reason, when using a form with a listbox whose rowsourcetype is Alias (2), if the listbox loses focus, then the user attempts to scroll it, the selection(s) are lost.
The only time selections are retained is when scrolling on a listbox in which selections are currently being made.
I've tried setting a breakpoint on the listbox's LostFocus event and watching the alias' contents in the Data Session window to see when the line ceases to be selected, but that window only ever shows a single line (the most recently clicked) as being selected, no matter how many are selected. The line in the Data Session window remains selected at all times, even when the listbox on the form shows the line as no longer selected.
I have failed to reproduce this on some listboxes which use an Array (5) rowsourcetype, but I can't guarantee that every rowsourcetype except Alias is working.
I'm including a couple of screenshots that demonstrate that no matter how many items I select on the listbox, the alias contents only show one item as selected, which makes my approach to debug the initial issue useless.
Any suggestions on how to figure out why the items become de-selected is appreciated.
Regards,
Patricia Cu
For some unknown reason, when using a form with a listbox whose rowsourcetype is Alias (2), if the listbox loses focus, then the user attempts to scroll it, the selection(s) are lost.
The only time selections are retained is when scrolling on a listbox in which selections are currently being made.
I've tried setting a breakpoint on the listbox's LostFocus event and watching the alias' contents in the Data Session window to see when the line ceases to be selected, but that window only ever shows a single line (the most recently clicked) as being selected, no matter how many are selected. The line in the Data Session window remains selected at all times, even when the listbox on the form shows the line as no longer selected.
I have failed to reproduce this on some listboxes which use an Array (5) rowsourcetype, but I can't guarantee that every rowsourcetype except Alias is working.
I'm including a couple of screenshots that demonstrate that no matter how many items I select on the listbox, the alias contents only show one item as selected, which makes my approach to debug the initial issue useless.
Any suggestions on how to figure out why the items become de-selected is appreciated.
Regards,
Patricia Cu