Click or drag to resize

ChromiumWebBrowserCreateBrowserWindowInfo Method

Version 88.2.90
Override this method to handle creation of WindowInfo. This method can be used to customise aspects of browser creation including configuration of settings such as ExStyle. Window Activation is disabled by default, you can re-enable it by overriding and removing the WS_EX_NOACTIVATE style from ExStyle.

Namespace:  CefSharp.WinForms
Assembly:  CefSharp.WinForms (in CefSharp.WinForms.dll) Version: 88.2.90.0 (88.2.90.0)
Syntax
protected virtual IWindowInfo CreateBrowserWindowInfo(
	IntPtr handle
)

Parameters

handle
Type: SystemIntPtr
Window handle for the Control

Return Value

Type: IWindowInfo
Window Info
Examples
To re-enable Window Activation then remove WS_EX_NOACTIVATE from ExStyle
const uint WS_EX_NOACTIVATE = 0x08000000;
windowInfo.ExStyle &= ~WS_EX_NOACTIVATE;
See Also