static int Main(string[] args) { if (!AmbLib.IsNet45OrNewer()) { MessageBox.Show(Properties.Resources.DOTNET_45_REQUIRED, Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error); return(1); } Ambiesoft.CppUtils.AmbSetProcessDPIAware(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); FormMain form = new FormMain(args); AmbLib.SetFontAll(form); Application.Run(form); return(0); }