private void loadingForWait() { load.FormBorderStyle = FormBorderStyle.FixedSingle; load.MaximizeBox = false; load.MinimizeBox = false; load.ShowDialog(); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); using (var loginForm = new loading()) result = loginForm.ShowDialog(); if (result == DialogResult.OK) { // login was successful Application.Run(new Main()); } }