System.Windows.Forms.HtmlWindow.OpenNew Method

Displays a file in a new window.

Syntax

public HtmlWindow OpenNew (string urlString, string windowOptions)

Parameters

urlString
The Uniform Resource Locator that describes the location of the file to load.
windowOptions
A comma-delimited string consisting of zero or more of the following options in the form name=value. See HtmlWindow.Open(string, string, string, bool) for a full description of the valid options.

Returns

An System.Windows.Forms.HtmlWindow representing the new window.

Remarks

If the file referenced by url is an HTML file, text file, or other file type that can be hosted inside of Internet Explorer, it will be displayed in a new window. If the file cannot be displayed inside of Internet Explorer, then the window will open only long enough for Internet Explorer to download the resource; it will close immediately afterwards.

When you create new windows using HtmlWindow.Open(string, string, string, bool) or HtmlWindow.OpenNew(string, string), it causes the HTML Document Object Model to open a new instance of Internet Explorer. If you do not call HtmlWindow.Close on all of the windows you have created, this instance of Internet Explorer will remain running even after your application has quit.

If you want to load a document into a previously opened window, see the HtmlWindow.Open(string, string, string, bool) method.

Requirements

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