protected override void OnPaint( PaintEventArgs paintEvent ) { int angled; double angler; Graphics g = paintEvent.Graphics; Pen pen = new Pen( Color.Black ); int x1=0; int x2=360; int y1=0; int y2=0; g.TranslateTransform(50,200); g.DrawLine(pen,x1,y1,x2,y2); x1=0; y1=0 ; pen.Color=Color.Red; for (angled=1;angled<361;++angled) { angler=angled*2*Math.PI/360; x2=angled; y2=(int)(180*Math.Sin(angler)); g.DrawLine(pen,x1,y1,x2,y2); x1=angled; y1=y2; } x1=0; y1=180; pen.Color=Color.Blue; for (angled=0;angled<361;++angled) { angler=angled*2*Math.PI/360; x2=angled; y2=(int)(180*Math.Cos(angler)); g.DrawLine(pen,x1,y1,x2,y2); x1=angled; y1=y2; } }