start IE

  • Thread starter Thread starter Anonymous
  • Start date Start date
A

Anonymous

How do I start Internet Explorer a second time in the same window,
replacing the first displayed html-file. Don't want to start a new instance,
don't want to mess with users (registry) settings.

/ .
 
Hi Anonymous,

this works for me, put a button on a form and add this code:

Private teller As Integer = 0
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles _ Button1.Click
teller += 1
If teller = 1 Then
System.Diagnostics.Process.Start("http://www.google.com")
Else
System.Diagnostics.Process.Start("http://www.yahoo.com")
teller = 0
End If
End Sub

hth Greetz Peter
 
Peter Proost said:
this works for me, put a button on a form and add this code:

Private teller As Integer = 0
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles _ Button1.Click
teller += 1
If teller = 1 Then
System.Diagnostics.Process.Start("http://www.google.com")
Else
System.Diagnostics.Process.Start("http://www.yahoo.com")
teller = 0
End If

That's how I would solve the problem too...

When showing a webpage from within a program, I /would not/ call a specific
browser. Instead, I'd launch the document in the default browser. If the
user has chosen to reuse browser instances, then they should be reused. If
the user wants the page to be shown in a
separate browser window, he/she should uncheck the option to reuse existing
browser windows.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top