After one hour or so of research, I failed to find how to set the focus to a ListBox at window open time.
The window (main window) have two Controls: a ListBox
and a TextField
(read/write).
All in all, actually, the TextField
always have the focus, I never been able to set the focus to the ListBox
.
My question is:
How can I set the Focus
to the ListBox
at window open time ?
PS: I make a copy of the Selected Row
(or the first selected Row if more than one Row is selected), into this TextField
so I need to be able to copy the contents (whole or part) of the TextField
contents (unfortunately setting the TextField
as ReadOnly
is not an option).