HtmlDocument::Focus Method ()
.NET Framework (current version)
Sets user input focus on the current document.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
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
Available since 2.0
Show: