Click here to Skip to main content
14,270,361 members
Rate this:
Please Sign up or sign in to vote.
See more:
<img src="http://marcin.floryan.pl/wp-content/uploads/2010/08/WPF-Window-native-shadow.png"/>

http://marcin.floryan.pl/wp-content/uploads/2010/08/WPF-Window-native-shadow.png[^]
c# windows form, the form side of the shade, what can I do to.

I found this code but it does not implement the same as the shadow effect.
Equal to the amount of code required to do the shading.
private const int CS_DROPSHADOW = 0x20000;
protected override CreateParams CreateParams
{
get
{
CreateParams cp = base.CreateParams;
cp.ClassStyle |= CS_DROPSHADOW;
return cp;
}
}
Posted
Updated 28-Sep-12 7:27am
v6
Rate this:
Please Sign up or sign in to vote.

Solution 1

Windows Forms is not WPF, so why are you surprised that it doesn't work?
If you really want a shadow on your Windows Forms, perhaps this article may help: Transparent drop shadow in C# (GDI+ and Windows Forms)[^]
   
Rate this:
Please Sign up or sign in to vote.

Solution 2

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


code is already in the process that you, and I

http://marcin.floryan.pl/wp-content/uploads/2010/08/WPF-Window-native-shadow.png[^]

I want the shading as shown in the picture, ie in the form of subway style.
   

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100