Click or drag to resize

ChromiumWebBrowserFocusHandler Property

Version 83.4.2
The IFocusHandler for this ChromiumWebBrowser.

Namespace:  CefSharp.WinForms
Assembly:  CefSharp.WinForms (in CefSharp.WinForms.dll) Version: 83.4.2.0 (83.4.2.0)
Syntax
public IFocusHandler FocusHandler { get; set; }

Property Value

Type: IFocusHandler
The focus handler.

Implements

IWebBrowserFocusHandler
Remarks
If you need customized focus handling behavior for WinForms, the suggested best practice would be to inherit from DefaultFocusHandler and try to avoid needing to override the logic in OnGotFocus. The implementation in DefaultFocusHandler relies on very detailed behavior of how WinForms and Windows interact during window activation.
See Also