private void DemoForm_Load(object sender, EventArgs e) { Width = 300; Height = 300; if (!DesignMode) { shadow = new Dropshadow(this) { ShadowBlur = 40, ShadowSpread = 10, ShadowColor = Color.DimGray }; shadow.RefreshShadow(); UpdateValue(); } }
private void btnBlurDe_Click(object sender, EventArgs e) { shadow.ShadowBlur -= step; shadow.RefreshShadow(); UpdateValue(); }
private void Form1_Load(object sender, EventArgs e) { if (!DesignMode) { Dropshadow shadow = new Dropshadow(this) { ShadowBlur = 0, ShadowSpread = 1, ShadowColor = Color.FromArgb(140, 140, 140) }; shadow.RefreshShadow(); } }