Launching Files into the correct application

  • Thread starter Thread starter Paul Bowman
  • Start date Start date
P

Paul Bowman

Hi All

Is there functionality in .NET that achieves the same effect as
ShellExecute? or would I need to call the ShellExecute function?

Alternatively is there a way to invoke IE from .NET and have it
display the file (if you wanted to ensure it was readonly).

Thanks In Advance

Paul Bowman
 
Hi Paul,

A very nice one (the only difference with C# is the dim, ; at the end and
the @ in the string)
\\\copied from Herfried. K. Wagner
Dim psi As New ProcessStartInfo
psi.FileName = "http://www.bla.foo"
psi.UseShellExecute = True
Process.Start(psi)
///

I hope this helps.

Cor
 
Back
Top