System.Windows.Forms.HtmlDocument.Forms Property

Gets a collection of all of the <FORM> elements in the document.

Syntax

public HtmlElementCollection Forms { get; }

Value

Documentation for this section has not yet been entered.

Remarks

An HTML document may have one or more FORM elements with input fields for submitting data back to a server.

You can programmatically submit a FORM by obtaining its System.Windows.Forms.HtmlElement and calling its Submit method using the erload:System.Windows.Forms.HtmlElement.InvokeMember method.

To add a new FORM to a document, you can either create a new FORM tag as a string, and assign it to the HtmlElement.InnerHtml property of an element previously added to the HTML DOM; or you can use the HtmlDocument.CreateElement(string) method, set its properties using HtmlElement.SetAttribute(string, string), and add it as a child of an existing element using HtmlElement.AppendChild(HtmlElement).

Requirements

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