J.J.,

You're only sleeping for 10 mS. What if you upp the value to something like 100 or 200? 1000?

Steve





On 2/8/2011 2:15 PM, J.J. Meddaugh wrote:
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.

--
Stephen Clower
Product support specialist
GW Micro, Inc. * 725 Airport North Office Park, Fort Wayne, IN 46825
260-489-3671 * gwmicro.com

Reply via email to