We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How do I open a HTML page from a windows program?

i mean i need to include a user guide in my program..i know there is a helpProvider which allows user to press F1 to open this help.htm file..but can i use a menu click or toolbar button event click instead of pressing F1?

1 Reply

AD Administrator Syncfusion Team October 14, 2002 03:46 AM

If you just want to launch a web browser window and display an htm file in it, you can use the System.Diagnostics.Process class.
private void button1_Click(object sender, System.EventArgs e)
{

	System.Diagnostics.Process proc = new System.Diagnostics.Process();
 	
	proc.StartInfo.FileName = @"iexplore.exe"; 
	proc.StartInfo.Arguments = @"C:\ColorPicker.htm";
	proc.Start(); 
}

Loader.
Live Chat Icon For mobile
Up arrow icon