using System;
using System.Drawing;
using System.Windows.Forms;
public class FormPaintOverride : Form
{
public FormPaintOverride()
{
Text = "Paint Demonstration";
Size = new Size(300,200);
}
static void Main()
{
Application.Run(new FormPaintOverride());
}
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
Graphics g = e.Graphics;
g.DrawString("www.rntsoft.com", Font, Brushes.Black, 50, 75);
}
}