Exemplo n.º 1
0
 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();
     }
 }
Exemplo n.º 2
0
 private void btnBlurDe_Click(object sender, EventArgs e)
 {
     shadow.ShadowBlur -= step;
     shadow.RefreshShadow();
     UpdateValue();
 }
Exemplo n.º 3
0
        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();

            }
        }