HtmlDocument.Forms Property
Gets a collection of all of the <FORM> elements in the document.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Property Value
Type: System.Windows.Forms.HtmlElementCollectionAn HtmlElementCollection of the <FORM> elements within the document.
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 HtmlElement and calling its Submit method using the 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 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.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.