Demo CefSharpSettings.SubprocessExitIfParentProcessClosed

Set CefSharpSettings.SubprocessExitIfParentProcessClosed = true; to demo this feature.
This commit is contained in:
amaitland
2018-10-26 13:12:32 +10:00
parent b5ee0f5d0c
commit f36aeca119
3 changed files with 12 additions and 0 deletions

View File

@@ -14,6 +14,10 @@ namespace CefSharp.MinimalExample.WinForms
[STAThread]
public static void Main()
{
//Monitor parent process exit and close subprocesses if parent process exits first
//This will at some point in the future becomes the default
CefSharpSettings.SubprocessExitIfParentProcessClosed = true;
//For Windows 7 and above, best to include relevant app.manifest entries as well
Cef.EnableHighDPISupport();