Example #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();
     }
 }
Example #2
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();

            }
        }