using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
namespace WindowsFormsApplication
{
public partial class program : Form
{
[STAThread]
static void Main()
{
Application.Run(new program());
}
public program()
{
this.Paint += new PaintEventHandler(program_Paint);
}
void program_Paint(object sender, PaintEventArgs e)
{
Pen pen = new Pen(Brushes.Red);
e.Graphics.DrawEllipse(pen,10,10,80,30) ;
e.Graphics.FillEllipse(Brushes.Red, 10, 50, 80, 30);
e.Graphics.DrawLine(pen, 10, 25, 10, 65);
e.Graphics.DrawLine(pen, 90, 25, 90, 65);
}
}
}