public static centerForm ( |
||
form | ||
return | void |
public static void centerForm(Form form)
{
form.Left = (Screen.FromControl(form).Bounds.Width - form.Width) / 2;
form.Top = (Screen.FromControl(form).Bounds.Height - form.Height) / 2;
}