Click here to Skip to main content
15,885,876 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
private const int CS_DROPSHADOW = 0x00020000;
protected override CreateParams CreateParams
{
    get
    {
        // add the drop shadow flag for automatically drawing
        // a drop shadow around the form
        CreateParams cp = base.CreateParams;
        cp.ClassStyle |= CS_DROPSHADOW;
        return cp;
    }
}



this code used for shadowing effect to Window Form, but i want this effect to controls which are all present in the Form...
Posted
Comments
Sinisa Hajnal 23-Nov-15 6:11am    
Form is Control object. It should work on all controls without change
Sathish km 23-Nov-15 6:51am    
only form is getting shadow effect. How to implement to controls like button within that Form.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900