using System;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
public class Form1 : System.Windows.Forms.Form {
[STAThread]
static void Main() {
Application.Run(new Form1());
}
protected override void OnPaint(PaintEventArgs e) {
Graphics g = e.Graphics;
HatchBrush hb = new HatchBrush(HatchStyle.LargeConfetti,Color.AntiqueWhite, Color.Blue);
g.FillEllipse(hb, 30, 30, Width - 50, 30);
}
}
|