Click or drag to resize

ChromiumWebBrowserCreateBrowserWindowInfo Method

Version 102.0.100
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: 102.0.100.0 (102.0.100.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