Run a resource

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi,

i have an html document in a resource file. when i click a button, i want
the file to appear in the default browser.

my code is

Windows_Application_1.Files.ReadMe //i dont know where to go now!

can anyobne help me?

thanx in advance
 
Hi Alvo,
I would write the contents of your resource file to a location on disk as
a temporary file, then using the System.Diagnostics.Process object you can
open IE and pass the name of the temporary HTML file as an arguement. You
can try with other browser exe's or try to look in the System registry to see
what the default browser is.
 
Back
Top