Gets a collection of all of the <FORM> elements in the document.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
An HTML document may have one or more FORM elements with input fields for submitting data back to a server.
To add a new FORM to a document, you can either create a new FORM tag as a string, and assign it to the InnerHtml property of an element previously added to the HTML DOM; or you can use the CreateElement method, set its properties using SetAttribute, and add it as a child of an existing element using AppendChild.
The following code example iterates through all of the Form elements on a Web page and clears all user input, setting the forms back to their default values.
Available since 2.0