diff --git a/CefSharp.WinForms.Example/BrowserForm.cs b/CefSharp.WinForms.Example/BrowserForm.cs index 2f068440e..969ab0e8f 100644 --- a/CefSharp.WinForms.Example/BrowserForm.cs +++ b/CefSharp.WinForms.Example/BrowserForm.cs @@ -54,6 +54,11 @@ namespace CefSharp.WinForms.Example } private void ExitMenuItemClick(object sender, EventArgs e) + { + ExitApplication(); + } + + private void ExitApplication() { Cef.Shutdown(); Close(); @@ -123,7 +128,7 @@ namespace CefSharp.WinForms.Example if (browserTabControl.Controls.Count == 0) { - Close(); + ExitApplication(); } }