HtmlDocument::ActiveElement Property
.NET Framework (current version)
Provides the HtmlElement which currently has user input focus.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Property Value
Type: System.Windows.Forms::HtmlElement^The HtmlElement which currently has user input focus.
When the document has focus, but no element of the document has been given focus, ActiveElement returns the element corresponding to the <BODY> tag.
If the document does not have focus, ActiveElement returns null.
If the current element with input focus is a cell (TD) in an HTML TABLE tag, ActiveElement will return the element that contains the TABLE element.
.NET Framework
Available since 2.0
Available since 2.0
Show: