ZennoLab Assemblies Documentation
MainForm Property
Example 
ZennoLab.CommandCenter Namespace > Document Class : MainForm Property
Gets the first form the document.
Syntax
public HtmlElement MainForm {get;}

Property Value

Type: Zennolab.CommandCenter.HtmlElement

The first form of the document.

Example
The following code example uses the MainForm property.
// get document
Document doc = tab.MainDocument;
 
// get the main form
HtmlElement mainForm = doc.MainForm;
// get document
$doc = $tab->MainDocument;
 
// get the main form
$mainForm = $doc->MainForm;
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

Document Class
Document Members
Forms Property