Home All Groups Group Topic Archive Search About
Author
2 Feb 2006 8:41 AM
Mike Simpson
I installed the new Internet Explorer 7 beta on my PC today and find that
none of my VB6 projects which include web browsers work any more.

I get an error log as follows:-

Line 55: Class SHDocVwCtl.WebBrowser of control WebBrowser1 was not a loaded
control class.
Line 61: The property name ExtentX in WebBrowser1 is invalid.
Line 62: The property name ExtentY in WebBrowser1 is invalid.
Line 63: The property name ViewMode in WebBrowser1 is invalid.
Line 64: The property name Offline in WebBrowser1 is invalid.
Line 65: The property name Silent in WebBrowser1 is invalid.
Line 66: The property name RegisterAsBrowser in WebBrowser1 is invalid.
etc.

Not particularly important in the project I was working on, but just take
this as a warning in case you are tempted to install the IE7 beta.

On the other hand, does anyone know how to get around this?

Mike,
Penrith, NSW, Australia

Author
2 Feb 2006 5:41 PM
Stefan Berglund
On Thu, 2 Feb 2006 19:41:00 +1100, "Mike Simpson" <ag***@optushome.com.au> wrote:
in <43e1c59c$0$5922$afc38***@news.optusnet.com.au>

Show quoteHide quote
>I installed the new Internet Explorer 7 beta on my PC today and find that
>none of my VB6 projects which include web browsers work any more.
>
>I get an error log as follows:-
>
>Line 55: Class SHDocVwCtl.WebBrowser of control WebBrowser1 was not a loaded
>control class.
>Line 61: The property name ExtentX in WebBrowser1 is invalid.
>Line 62: The property name ExtentY in WebBrowser1 is invalid.
>Line 63: The property name ViewMode in WebBrowser1 is invalid.
>Line 64: The property name Offline in WebBrowser1 is invalid.
>Line 65: The property name Silent in WebBrowser1 is invalid.
>Line 66: The property name RegisterAsBrowser in WebBrowser1 is invalid.
>etc.
>
>Not particularly important in the project I was working on, but just take
>this as a warning in case you are tempted to install the IE7 beta.
>
>On the other hand, does anyone know how to get around this?
>
>Mike,
>Penrith, NSW, Australia
>

Drum roll, please.  Heeeeeeeeeeere it comes!

---
Stefan Berglund
Author
2 Feb 2006 8:25 PM
Ken Halter
"Mike Simpson" <ag***@optushome.com.au> wrote in message
news:43e1c59c$0$5922$afc38c87@news.optusnet.com.au...
>I installed the new Internet Explorer 7 beta on my PC today and find that
>none of my VB6 projects which include web browsers work any more.
>
> I get an error log as follows:-
>
> Line 55: Class SHDocVwCtl.WebBrowser of control WebBrowser1 was not a
> loaded control class.

I haven't played around with IE7 yet but.... locate the OCA file that
belongs to the webbrowser control and delete it (if you have RegClean, run
it). VB will re-create a new OCA file based on the new control when you open
a project that contains a WebBrowser.

Also, I always load the WebBrowser at runtime because it's a sloppy control.
There have been several cases that I'd get errors similar to those you
posted without changing IE or the project. Also, no matter what you do, if
you open a form from inside VB that has a WebBrowser control, VB marks the
form as "Dirty" and wants to save it before allowing you to run again.
Loading the control at runtime eliminates this "feature" (and the errors you
posted) because there's no propertybag to deal with (no design time
settings). I just drop a frame on the form, set its backcolor = White, it's
border = none. At that point, it looks like an empty webbrowser so I
position/size it the way I want the WebBrowser to look. At runtime, load the
WebBrowser control and set it's container = the white frame and you're set.

--
Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
Freeware 4 color Gradient Frame? http://www.vbsight.com/GradFrameCTL.htm