public static void Main()
{
if (!System.Diagnostics.Debugger.IsAttached)
{
Application.SetUnhandledExceptionMode(UnhandledExceptionMode.ThrowException);
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
}
CefSharp.Settings settings = new CefSharp.Settings();
settings.CachePath = string.Empty;
CEF.Initialize(settings);
Application.ApplicationExit += Application_ApplicationExit;
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MainForm());
}