[c#] Drop Shadow?

shadmehr

Newcomer
Joined
May 16, 2011
Code:
//Drop Shadow below custom form
        private const int CS_DROPSHADOW = 0x00020000;
        protected override CreateParams CreateParams
        {
            get
            {
                CreateParams cp = base.CreateParams;
                cp.ClassStyle |= CS_DROPSHADOW;
                return cp;
            }
        }

Place the code above after
Code:
 public Form1()
        {
            InitializeComponent();
        }
Hope be useful.
 
Last edited by a moderator:
Top Bottom