System.Windows.Forms.HtmlElement.Focus Method

Puts user input focus on the current element.

Syntax

public void Focus ()

Remarks

Setting the focus on an element both gives that element focus and makes it the active element; for example, the element that has focus will be returned by the HtmlDocument.ActiveElement property of System.Windows.Forms.HtmlDocument.

Any key strokes entered by a user after HtmlElement.Focus has been called will be sent to that element.

Requirements

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