Hmmm,
not sure if I just missunderstand it but I thought if the url is not reachable because of no internet connection or so it should give out the message defined?:
If Attachbrowser(wb,"http://www.ionicwind.com/forums/index.php") = -1
Messagebox wb, "Couldn't create browser control","Error"
End
Endif
However, it does not - why? The window just keeps loading!
No. Attachbrowser only fails if the WebBrowser control itself can't be cretaed, such as if the user has completely removed IE from their system, out of memory conditions, etc.
If you wish to check for a web page not loading you will need to process messages from the control. @IDNAVCOMPLETE should be of use for this purpose.
Quote from: Paul Turley on August 08, 2007, 08:40:15 AM
No. Attachbrowser only fails if the WebBrowser control itself can't be cretaed, such as if the user has completely removed IE from their system, out of memory conditions, etc.
If you wish to check for a web page not loading you will need to process messages from the control. @IDNAVCOMPLETE should be of use for this purpose.
Thanks! So, I am stupid! ;) - Just misunderstood it!
After your explanation it looks clear to me!