HtmlElement.Focus Method ()

 

Puts user input focus on the current element.

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

public void Focus()

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 ActiveElement property of HtmlDocument.

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

.NET Framework
Available since 2.0
Return to top
Show: