Commenting sleep commands sometiomes work and some times doesn't. It doesn't waste time sleeping though :)
Webbrowser is in a container that sits on a page. The container/browser pair is defined in a class which has methods added to container.
Alex
>Comment out call to Sleep() and see if it helps. Is Web Browser control hosted directly on a form or something else?
>You may also try different way loading of HTML
http://www.berezniker.com/content/pages/visual-foxpro/loading-html-web-browser-control-variable>
>>The navigator is timing out, even when I increase time to 8 seconds, but only sometimes (often).
>>
>>What could be causing the problem? Maybe some properties are set wrong? I created the class some time ago and haven't used it much.
>>