CSKernelClient.cWindow.centerForm C# (CSharp) 메소드

centerForm() 공개 정적인 메소드

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