CSKernelClient.cWindow.centerForm C# (CSharp) Method

centerForm() public static method

public static centerForm ( Form form ) : void
form System.Windows.Forms.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;
        }