I am trying to use this code below, on one form project it works but on another I am getting a debug error 'SHDocVw.InternetExplorer' is not defined.
' Open Internet explorer with no link bar
Dim shIE
shIE = New SHDocVw.InternetExplorer()
With shIE
.AddressBar = False
.FullScreen = False
.MenuBar = False
.Resizable = True
.StatusBar = False
.TheaterMode = False
.ToolBar = Convert.ToInt32(False)
.Height = 550
.Width = 800
.Top = 0
.Left = 0
.Visible = True
Call .Navigate(LinkLabel1.Tag)
End With
' END Internet explorer with no link bar
To use that method you need to add a refernce to shdocvw.dll, and
I have no idea where in windows it is. Just stick to the Process.Start
way, and you'll be fine.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.