test code post
March 13th, 2009 by Jason / No Comments »
protected override CreateParams CreateParams { get { const int CS_DROPSHADOW = 0x20000; CreateParams param = base.CreateParams; param.ClassStyle += CS_DROPSHADOW; return param; } } private void Form1_Load(object sender, EventArgs e) { GraphicsPath path = new GraphicsPath(); path.AddEllipse(0, 0, this.Width / 2, this.Height / 2); this.Region = new Region(path); } |

