How to open a html file in internet explorer

  • Thread starter Thread starter Herfried K. Wagner [MVP]
  • Start date Start date
H

Herfried K. Wagner [MVP]

Hello,

QT said:
I want to put a button which will start internet exploerer with specified
html page.

I try to use shell(), but with shell, I have to know where is the
explorer.exe

I just want to point a html file and that file starts internet explorer. Can
I do that?

Because I know where will be html file (in cd).

'System.Diagnostics.Process.Start("C:\bla.html")' will start the default
browser with the file passed to the 'Start' method.
 
I just want to point a html file and that file starts internet
explorer. Can I do that?

Look at the System.Diagnostics.Process class and its start method.

Chris
 
Mhm. That's the client control.

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

"Maybe it's a game called 'Punish the User'"
 
Isn't that what he is trying to do, hit a button that opens a IE window and
loads page ?

am i missing something ?

Niclas
 
Hello,

Niclas Lindblom said:
Isn't that what he is trying to do, hit a button that opens a IE
window and loads page ?

How do you open an MSIE window with the WebBrowser control?
 
Dear Sirs,

I want to put a button which will start internet exploerer with specified
html page.

I try to use shell(), but with shell, I have to know where is the
explorer.exe

I just want to point a html file and that file starts internet explorer. Can
I do that?

Because I know where will be html file (in cd).

I want to make simple cd start application to start index page.

Best Regards
 
Ditto: Appologies. But is it really worth it?

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

"Maybe it's a game called 'Punish the User'"


Herfried K. Wagner said:
Hello,

MS Newsgroups said:
This opens a IE window and loads www.microsoft.com [...]
Dim myBrowser As New InternetExplorer

Ah... my mistake. You can use the 'InternetExplorer' class.
 
I didn't say that... :)

Niclas

Tom Spink said:
Ditto: Appologies. But is it really worth it?

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

"Maybe it's a game called 'Punish the User'"


Herfried K. Wagner said:
Hello,

MS Newsgroups said:
This opens a IE window and loads www.microsoft.com [...]
Dim myBrowser As New InternetExplorer

Ah... my mistake. You can use the 'InternetExplorer' class.
 
Back
Top