static void Main() { // set timer resolution to 1ms so the sleep gets the required accurcacy in the wait loop WinMM.TimeBeginPeriod(1); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new MainForm()); }
private static void Main() { AppDomain.CurrentDomain.AssemblyResolve += CurrentDomain_AssemblyResolve; // set timer resolution to 1ms to try and get the sleep accurate in the wait loop WinMM.TimeBeginPeriod(1); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new MainForm()); }