Click here to Skip to main content
15,883,870 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have to open a HTML file in a windows form and it should close when user close the browser.

I used the below code

C#
var proc = new Process();
               
               proc.StartInfo.FileName = @OutputFolder + "\\" + htmlName + ".html";
               proc.Start();
               proc.WaitForExit();
               proc.Close();


How to open this Html file on any browser in a new windows form application, so that if we close the windows application the IE should end the process.

Thanks in advance
Posted
Updated 2-Feb-15 3:25am
v2

1 solution

 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900