V
Vadim Rapp
Hello,
I want to create a webbrowser object programmatically, navigate to a URL,
and then analyze the document.
I create the following code (simplified):
Dim ie as new webbrowser
ie.navigate "http://www.google.com"
do while isnothing(ie.document)
threading.thread.sleep 1000
loop
This does not work; there's no error, but browser object does not navigate
anywhere. Same as if I declare the ebject with withevents, navigate, and
then expect callback - it never comes.
Navigation works if I create a separate form and put webbrowser control on
it.
Why it does not work as an object?
thanks,
Vadim Rapp
I want to create a webbrowser object programmatically, navigate to a URL,
and then analyze the document.
I create the following code (simplified):
Dim ie as new webbrowser
ie.navigate "http://www.google.com"
do while isnothing(ie.document)
threading.thread.sleep 1000
loop
This does not work; there's no error, but browser object does not navigate
anywhere. Same as if I declare the ebject with withevents, navigate, and
then expect callback - it never comes.
Navigation works if I create a separate form and put webbrowser control on
it.
Why it does not work as an object?
thanks,
Vadim Rapp