private void ShowAbout() { About about = new About(); about.Show(); about.BringToFront(); about.Focus(); }
public void Jumplist_ShowAbout(String[] arguments) { About about = Shellscape.Program.FindForm(typeof(About)) as About ?? new About(); MethodInvoker method = delegate() { // yes, all this ugly is necessary. about.Show(); about.TopMost = true; about.BringToFront(); about.Focus(); about.TopMost = false; }; if (about.InvokeRequired) { about.Invoke(method); } else { method(); } }
private void ShowAbout() { About about = new About(); about.Show(); about.BringToFront(); about.Focus(); }