Click here to Skip to main content
15,889,335 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
All,

I have created a form without borders, now I need to show borders or shadow on four sides of Form. I have used below code and getting shadow only for bottom and right side. I am not getting the shadow on top and left side of Form... Can you please provide me a solution...

C#
protected override CreateParams CreateParams
       {
           get
           {
               const int CS_DROPSHADOW = 0x20000;
               CreateParams cp = base.CreateParams;
               cp.ClassStyle |= CS_DROPSHADOW;
               return cp;
           }
       }

Thanks in Advance...

Regards
Naveen
Posted

1 solution

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