BlueMonkMN
2004-11-01 15:48:54 UTC
Has support for the WebBrowser ActiveX control been discontinued or
something? I don't see "Microsoft Internet Controls" in the list of
available components, and when I try to browse for SHDocVw.dll, it
will show up as "Microsoft Internet Controls", but when I click OK, it
says shdocvw.dll could not be loaded. I can add a reference to it
(rather than referencing it as an ActiveX control), but I can't site
the control on the form if I only have a reference... need to use
Controls.add to do that. When I use Controls.Add, I have to give a
ProgID. The CLSID for the WebBrowser control's CoClass (according to
OLE COM Object viewer) is 8856F961-340A-11D0-A96B-00C04FD705A2, which
the registry points back to a ProgID of Shell.Explorer.2. So I tried
Me.Controls.Add("Shell.Explorer.2", "wbMain"), but when I try to put
that into a variable declared as type WebBrowser, I get a type
mismatch. So I put it into a variant temporarily. Then I used
TypeLibInfo to give me information about what methods could be
executed on the object I got back from Controls.Add (because Navigate
and Navigate2 weren't valid). They all looked very generic like you
would find on every control. Nothing relating to Windows Explorer or
Internet Explorer as far as I could tell. What's going on?
something? I don't see "Microsoft Internet Controls" in the list of
available components, and when I try to browse for SHDocVw.dll, it
will show up as "Microsoft Internet Controls", but when I click OK, it
says shdocvw.dll could not be loaded. I can add a reference to it
(rather than referencing it as an ActiveX control), but I can't site
the control on the form if I only have a reference... need to use
Controls.add to do that. When I use Controls.Add, I have to give a
ProgID. The CLSID for the WebBrowser control's CoClass (according to
OLE COM Object viewer) is 8856F961-340A-11D0-A96B-00C04FD705A2, which
the registry points back to a ProgID of Shell.Explorer.2. So I tried
Me.Controls.Add("Shell.Explorer.2", "wbMain"), but when I try to put
that into a variable declared as type WebBrowser, I get a type
mismatch. So I put it into a variant temporarily. Then I used
TypeLibInfo to give me information about what methods could be
executed on the object I got back from Controls.Add (because Navigate
and Navigate2 weren't valid). They all looked very generic like you
would find on every control. Nothing relating to Windows Explorer or
Internet Explorer as far as I could tell. What's going on?