using System.Windows.Forms; using System.Drawing; class MyForm : Form { public static void Main() { Application.Run(new MyForm()); } protected override void OnPaint(PaintEventArgs e) { e.Graphics.DrawString("Hello World!", new Font("Arial", 35), Brushes.Blue, 10, 100); } }