Export (0) Print
Expand All

Help.ShowHelp Method (Control, String)

Displays the contents of the Help file at the specified URL.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public static void ShowHelp(
	Control parent,
	string url
)

Parameters

parent
Type: System.Windows.Forms.Control

A Control that identifies the parent of the Help dialog box.

url
Type: System.String

The path and name of the Help file.

The url parameter can be of the form C:\path\sample.chm or /folder/file.htm.

The following code example demonstrates the ShowHelp method. To run this example, paste the following code into a form that contains a button named Button1.

	// Open the Help file for the Character Map topic.   
	private void Button1_Click(System.Object sender, System.EventArgs e)
	{

		Help.ShowHelp(TextBox1, "file://c:\\charmap.chm");
	}

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft