Monday, 12 March 2012

Create a Drop Shadow around Form

public partial class MyCustomForm : Form
{
private static Int32 CS_DROPSHADOW = 0x00020000;

protected override CreateParams CreateParams
{
get
{
CreateParams parameters = base.CreateParams;
parameters.ClassStyle |= CS_DROPSHADOW;

return parameters;
}
}
}

No comments:

Post a Comment