Create a web browser component in MM2.5
Posted: Mon Nov 21, 2005 11:57 am
In MM2.4 and before, when creating a web browser component you needed to Naviagate to "about:" to initialise the Document. However, in MM2.5 this gives you a blank document and fails to load anything else you write to it. Here is the code I use to get around this problem:
Code: Select all
Set WB = UI.NewActiveX(Form, "Shell.Explorer")
WB.Common.Align = mmAlignClient ' Fill all client rectangle
WB.Common.ControlName = "WB"
If SDB.VersionHi=2 and SDB.VersionLo<5 Then WB.Interf.Navigate "about:"
Set doc = WB.Interf.Document