Dev-C++, using the g++ compiler, gives a warning about it being a Divide by 0.
VS2005 gives the warning "potential mod by 0", but since it is Modulus division, it's still dividing by 0.
Well, I just noticed that it's a Public Function, so maybe it's located in a module and not a form, in which case there is no Me object so the check that you're not unloading wouldn't work.
First step would be to add the code as Gremmy shows so you don't call Unload on the form in the middle of your function. Next is to debug each form unloading.
It's a lot more complicated. FindWindowEx can only find children directly under the window you're looking in. The Edit control isn't a first child. The actual hierarchy (from Windows XP and IE7's...
Unfortunately, you can't. Using either the WebBrowser control or an IE object, if you programmatically click the "Browse" button, your program is blocked, waiting for the dialog to be dismissed.
...
Option Base 1 means that that Dim statement makes an array that goes from 1 to 10.
Even Option Base 0 would have an index of 10 in that array, but you'd have 11 items (from 0 to 10).
If you ran the installer, it registered itself. And do recall, it's called the Mozilla ActiveX Control (not the Firefox ActiveX Control), so you need to look for...