mscott Posted March 13, 2003 Posted March 13, 2003 Anyone know if it is at all possible to launch IE from a windows form? Thanks. Quote
iebidan Posted March 13, 2003 Posted March 13, 2003 Yes you can... create a form, add a button and under the click event of the button put the followin code Dim ie As Process ie.Start("iexplore.exe", "http://www.yahoo.com") this should work Regards Quote Fat kids are harder to kidnap
*Experts* Nerseus Posted March 13, 2003 *Experts* Posted March 13, 2003 Here's another method: System.Diagnostics.Process.Start("http://www.yahoo.com"); It will open in whatever your default browser is. -Nerseus Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
mscott Posted March 13, 2003 Author Posted March 13, 2003 Shell("C:\Program Files\Internet Explorer\IEXPLORE.EXE " & path, AppWinStyle.NormalFocus) Quote
Leaders quwiltw Posted March 13, 2003 Leaders Posted March 13, 2003 You should probably stick to the ".net" ways that have been suggested. Either way, hardcoding the file path is not good. Quote --tim
iebidan Posted March 13, 2003 Posted March 13, 2003 Using shell is the VB6 way, using the process class or the system.diagnostics is the .NET way, don't use shell Quote Fat kids are harder to kidnap
superfoo Posted March 24, 2003 Posted March 24, 2003 Try the .NET way shIE = New SHDocVw.InternetExplorer() With shIE .AddressBar = False .FullScreen = False .MenuBar = False .Resizable = True .StatusBar = False .TheaterMode = False .ToolBar = Convert.ToInt32(False) .Height = 575 .Width = 750 .Top = 20 .Left = 20 .Visible = True Call .Navigate(URL) End With Quote
rnm89 Posted April 3, 2003 Posted April 3, 2003 Opening Explorer . . . Newbie 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 Quote
*Experts* Volte Posted April 3, 2003 *Experts* Posted April 3, 2003 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. :) Quote
superfoo Posted April 3, 2003 Posted April 3, 2003 Reference add the reference from the COM tab it is the 'Microsoft Internet Controls' (C:\WINNT\System32\shdocvw.dll). lates :cool: Quote
rnm89 Posted April 3, 2003 Posted April 3, 2003 I got it. . . . . Thanks Thanks for the super fast feedback. I found the answer. I needed to goto PROJECT then: Add REFERENCE, Microsoft Internet Control, SELECT I guess I did that at some time on the other form without knowing it. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.