Set Form window title and center the Form window on the desktop
using System;
using System.Windows.Forms;
using System.Drawing;
publicclass TestForm2 {
staticvoid Main() {
Form simpleForm = new Form();
simpleForm.Height = 200;
simpleForm.Width = 200;
simpleForm.Text = "This is the title";
// Center the Form on the desktop
simpleForm.StartPosition = FormStartPosition.CenterScreen;
simpleForm.Visible = true;
Application.Run(simpleForm);
}
}