2017-01-09 17:17 UTC
Hi Forum,
just asking for a quick feed-back on whether I understand correctly the nature of the "CurrentSelection" in the ListBox control:
When "re-entering" a modal form the "List" property of the ListBox is still remembered, so it is populated with the same items as before the "Form_close"
But the "CurrentSelection" returns -1, even though an item was selected before the form was closed.
I guess it has to do with the "CurrentSelection" of the ListBox not being a Property but something else?
Therefore it is necessary to have variables for the current selections of all ListBox's so that user selections from before the "Form_Close" can be re-established?
(Which is just what I am trying to avoid).
Thanks in advance
Carsten
just asking for a quick feed-back on whether I understand correctly the nature of the "CurrentSelection" in the ListBox control:
When "re-entering" a modal form the "List" property of the ListBox is still remembered, so it is populated with the same items as before the "Form_close"
But the "CurrentSelection" returns -1, even though an item was selected before the form was closed.
I guess it has to do with the "CurrentSelection" of the ListBox not being a Property but something else?
Therefore it is necessary to have variables for the current selections of all ListBox's so that user selections from before the "Form_Close" can be re-established?
(Which is just what I am trying to avoid).
Thanks in advance
Carsten