Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
1.00/5 (1 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.
C#
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

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)[^]
 
Share this answer
 
C#
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.
 
Share this answer
 

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