Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Fat kids are harder to kidnap
  • *Experts*
Posted

Here's another method:

System.Diagnostics.Process.Start("http://www.yahoo.com");

 

It will open in whatever your default browser is.

 

-Nerseus

"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
  • 2 weeks later...
Posted

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

  • 2 weeks later...
Posted

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

  • *Experts*
Posted

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. :)

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...