System.Windows.Forms.HtmlDocument.Focus Method

Sets user input focus on the current document.

Syntax

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
public void Focus ()

Remarks

Calling HtmlDocument.Focus will set focus on the System.Windows.Forms.WebBrowser control, if the control currently does not have focus. If the document is hosted inside of a FRAME, this method will put focus on that FRAME within the FRAMESET.

Requirements

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