11. Add HTML Page from C3 Add New Item
22. Put html inside
33. Drag and drop the html (e.g. HTMLPage1.html) file into your Resources tab in the project:
44. Use code below
5 private void button1_Click_1(object sender, EventArgs e)
6 {
7 string html = Properties.Resources.HTMLPage1;
8 string tmpFileName = Path.ChangeExtension(Path.GetTempFileName(), ".html");
9 using (StreamWriter sw = File.CreateText(tmpFileName))
10 {
11 sw.Write(html);
12 sw.Flush();
13 }
14 if (File.Exists(tmpFileName))
15 Process.Start(tmpFileName);
16 }
17