winforms align center code example Example: how to align a form in the center c# forms protected void CenterToScreen ();