If you want to get some embedded resource, you need to call
ResourceManager.GetStream
http://msdn.microsoft.com/en-us/library/zxee5096.aspx
It will return a memory stream. Read the memory stream to a byte array and write the byte array to some temp location and then invoke
Process.Start()
using the path of the temp file as argument.
Here is a sample code:
public class Class1{
public static void Main(string[] args){
FileStream stream = null;
string fullTempPath = null;
try{
byte[] page = Resources.HTMLPage1;
fullTempPath = Path.GetTempPath() + Guid.NewGuid() + ".html";
stream = new FileStream(fullTempPath, FileMode.Create, FileAccess.Write, FileShare.Read);
stream.Write(page, 0, page.Length);
stream.Flush(true);
stream.Close();
Process proc = new Process{StartInfo ={FileName = fullTempPath}};
proc.Start();
}
finally{
if (stream != null){
stream.Dispose();
}
}
}
}