public static void Waiting() { form = new Waiting(); form.Show(); while (true) { Thread.Sleep(50); Application.DoEvents(); } }