I am new to vb 6.0.
I have to open any browser other than Internet Explorer in the web browser control of vb (which open IE by default)
I have tried many codes and I can now open browser as if it is new window (by using process.start etc)
Is there any way to open it in existing vb control?
Best Answer
The web browser control IS Internet Explorer. So unless chrome et al release a ActiveX control of their browser, which they haven't, it is not possible.
There is a workaround is that you start chrome and then hook it's CreateWindowsEx and put your Apps Window as the owner. Then size it where you would have the web browser control using
SetWindowPos
. This gives the following featuresAn owned window is always above its owner in the Z order.
The system automatically destroys an owned window when its owner is destroyed.
An owned window is hidden when its owner is minimized.