public static FormWaitMessage ShowMessage(Form owner, string text) { FormWaitMessage f = new FormWaitMessage(); f.Owner = owner; f.SetText(text); f.Show(); Application.DoEvents(); return(f); }