In the Blind Bargains Product Search app, there's an edit box for the user to
type in a search phrase. Then, the results are loaded from the web and
displayed in a listbox where focus is moved. Sometimes, however, the focus is
moved and nothing is spoken. I'm thinking it's a timing issue of some sort.
Should I move focus before the results are there or wait until they are for
sure populated?
Currently, the listview is populated, and then there's this:
sleep 10
dObj.Control("lvResults").Focus
dObj.Control("lvResults").Items(1).Focused = True
I tried adding that sleep line above but to no avail.
If I wish focus before the search is initiated, there's extraneous speech
spoken (no selected item), etc.
Thanks for any help.