using System; using System.Windows.Forms; using System.Drawing; using System.Drawing.Drawing2D; class Joonis7:Form{ protected override void OnResize(EventArgs e){ base.OnResize(e); this.Invalidate(); } protected override void OnPaint(PaintEventArgs e){ base.OnPaint(e); Graphics g=e.Graphics; g.DrawEllipse(new Pen(Color.Green), 0, 0, this.Width, this.Height); } public static void Main(string[] arg){ Application.Run(new Joonis7()); } }