using System; using System.Windows.Forms; using System.Drawing; class Joonis1:Form{ protected override void OnPaint(PaintEventArgs e){ Pen p=new Pen(Color.Green, 5); Graphics g=this.CreateGraphics(); g.DrawRectangle(p, 40, 80, 20, 20); g.DrawLine(p, 50, 100, 50, 150); g.DrawEllipse(p, 100, 80, 20, 20); p.Dispose(); g.Dispose(); } public static void Main(string[] arg){ Application.Run(new Joonis1()); } }