HtmlDocument.Focus Method ()

 

Sets user input focus on the current document.

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

public void Focus()

Calling Focus will set focus on the 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.

UIPermission

For AllWindows permission to set focus on a form. Associated enumeration: UIPermissionWindow

.NET Framework
Available since 2.0
Return to top
Show: