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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

1295 Oct 14,2002 02:34 AM UTC Oct 14,2002 07:46 AM UTC WinForms 1
loading
Tags: FAQ
cheryl
Asked On October 14, 2002 02:34 AM UTC

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?

Administrator [Syncfusion]
Replied On October 14, 2002 07:46 AM UTC

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(); 
}

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;