Qaayam

How can I use the IE7 webbrowser control in my visual basic (6) applications



Re: Internet Explorer Web Development IE7 activeX Webbrowser control?

Dave Massy

Hi,

The IE7 WebBrowser control has the same interfaces as teh IE6 webbrowser control so is hostable in exactly the same way. If the user has IE7 installed than any applciaiton hosting the weboc will get the IE7 version.

Thanks
-Dave






Re: Internet Explorer Web Development IE7 activeX Webbrowser control?

Qaayam

not quite.. i remember getting a strange activex error when i tried to use the new control in my apps in vb6



Re: Internet Explorer Web Development IE7 activeX Webbrowser control?

Circus_Alchemist

Yep, that error was probably: 

"Class SHDocVwCtl.WebBrowser of control brwWebBrowser was not a loaded control class. "

The webbrowser ocx control seems to have disappeared with the install of IE7 (probably didn't work with 7).  Oh joy.  And now all users everywhere of my app (and any others that used this ocx) will be similarly pleased when IE7 becomes an autoupdate later this month.  Happy happy joy joy.

I'm guessing none of the beta testers were VB programmers.






Re: Internet Explorer Web Development IE7 activeX Webbrowser control?

response.write

I was able to reinstall my application from an old setup program and the browser control worked again.



Re: Internet Explorer Web Development IE7 activeX Webbrowser control?

Dan H.

Are you saying that you are able to use the web browser control that comes stock with VB6 on a system that has upgraded to IE7 Or is there a conflict between IE7 and the web browser control that comes with VB6





Re: Internet Explorer Web Development IE7 activeX Webbrowser control?

VB6Coder

I am also seeing an issue with the old webbrowser control where it actually crashes my app when you try to launch IE7 from the app using webbrowser.



Re: Internet Explorer Web Development IE7 activeX Webbrowser control?

Praneeth.S

How to download IE 7




Re: Internet Explorer Web Development IE7 activeX Webbrowser control?

joebrown

The issue isn't whether or not the testers found the problem (hint... THEY DID). Jiust include a link with your code to Firefox web site if you get my meaning.



Re: Internet Explorer Web Development IE7 activeX Webbrowser control?

i_lies_nix

I have had (in another progamming language) the same problem.

In IE6 the Name is ¡°Microsoft WebBroser¡±.

In IE7 the Name is ¡°Microsoft Web Broser¡±. Only 1 blank more.

Perhaps it help you.

Greetings.






Re: Internet Explorer Web Development IE7 activeX Webbrowser control?

Pawel from TETA

Hello,

I had the same problem after update IE from 6.0 to 7.0.

I also got following message : IE7 - File Not Found ieframe.dll\1

The solution that works for me is:

- Remove the old component reference (Microsoft Internet Controls)

- Remove OCA files (c:\WINDOWS\system32\ieframe.OCA , c:\WINDOWS\system32\shdocvw.OCA ...)

- Add new reference to shdocvw library (components/controls/browse/c:\WINDOWS\system32\shdocvw.DLL)

- Add again WebBrowse controls with new reference to your forms (or edit manually source if you have many controls)

Regards - Pawel






Re: Internet Explorer Web Development IE7 activeX Webbrowser control?

Mike Richards

Thanks for the help Pawel.

I had been running our VB6 project with IE6 just fine. I received the same file not found iefram.dll error. When I viewed my references Microsoft Internet Controls was not checked (I checked it, clicked ok then went back in an unchecked it).

I removed the .oca files from system32

I then added a new reference Microsoft Internet Controls via components/controls/browse.

I then deleted my two instances of the WebBrowse control and recreated them, but I am still receiving all my previous errors:

Line 40: Class SHDocVwCtl.WebBrowser of control WebBrowser2 was not a loaded control class.
Line 88: Class SHDocVwCtl.WebBrowser of control WebBrowser1 was not a loaded control class.
Line 46: The property name ExtentX in WebBrowser2 is invalid.
Line 47: The property name ExtentY in WebBrowser2 is invalid.
Line 48: The property name ViewMode in WebBrowser2 is invalid.
Line 49: The property name Offline in WebBrowser2 is invalid.
Line 50: The property name Silent in WebBrowser2 is invalid.

The list goes on and includes every property or method called on either instance of the browser control. Has anyone else found any other potential solutions Our app is internal only, but gets used quite extensively while debugging our web app. I am about to reinstall IE6, but am not entirely sure that will resolve the problem either.

-Mike





Re: Internet Explorer Web Development IE7 activeX Webbrowser control?

asp_gold

I had this exact same issue with a vb6 application i was updating. One difference I had was that the control worked just fine after the IE7 update from IE6, I was working with the control in my code. During a debug my application crashed, causing vb6 to shutdown. When I restarted the project, I got the "Class SHDocVwCtl.WebBrowser of control wboProfileOptions was not a loaded control class." error. I checked the class registration, it was still there, but the control was gone. I dont have an older version to install because the updates I was making to my app were to include the use of "SHDocVwCtl.WebBrowser" for the first time. maybe if im lucky I'll be able to find the components on another system...



Re: Internet Explorer Web Development IE7 activeX Webbrowser control?

NoEgo

This entire thing is just "stupid". I'm a C# guy. I must get this stupid old VB6 project (I have never code in Vb6 so not familiar with the pains, and not particularily happy that I have to work with VB6 whcih is what my grandpa coded in Stick out tongue). I just want to get this damn thing working and do NOT desire to uninstall IE7 (I like it as a developer and besides anyone should be testing against the latest browser in my personal opinion if you want public apps supported fully as not to piss off potential buyers). anyway, I also do not want to install both IE6 and IE7 side by side as it's not a standard or supported.

So, what the hell are we to do to get rid of a load error such as this when I try to open this VB6 solution for the first time that I just downloaded from VSS 6.0

Class SHDocVwCtl.WebBrowser of control wbList was not a loaded control class.

can you tell I'm annoyed MS






Re: Internet Explorer Web Development IE7 activeX Webbrowser control?

Pawel from TETA

Hello NoEgo!

I'm also C# guy with "old VB6 project to correct".

I fully understand your pain... I had exactly the same problem..

I'm very desperate with this error... I think Microsoft forced me to rewirite many KLOC of lines to C# :-(

I see no solutoin for it...

CAN ANYONE HELP