static void Main(string[] args) { SetProcessDPIAware(); Application.EnableVisualStyles(); Environment.CurrentDirectory = AppDomain.CurrentDomain.BaseDirectory; using (var f = PageForm.Create()) { f.ShowDialog(); } }
static void Main(string[] args) { using (var f = PageForm.Create()) { Application.EnableVisualStyles(); //Application.SetCompatibleTextRenderingDefault(false); //Application.Run(new Form1()); f.ShowDialog(); } }