How to keep form centered to the middle of the screen after resize
问题 I have a form that is centered according to the screen position that I resize by fontsize when loading. After resizing the location remains the same as it was before resizing so the form is no longer in the center, like I would like. Let me draw you a sketch: I've tried calling this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.ResumeLayout(false); this.PerformLayout(); again after resizing (this is, I believe, the part of the code that centers the form in the