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.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

1295 Oct 13,2002 10:34 PM Oct 14,2002 03:46 AM Windows Forms 1
loading
Tags: FAQ
cheryl
Asked On October 13, 2002 10:34 PM

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

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.

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.

;