Set Dialog / Form start-up position through C# code for Windows form
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Text = "New Form";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
}
No comments:
Post a Comment