Creates a Drop Shadow For a Form
Category:C#, VB.NET, ASP.NET
Version Compatibility: Visual Basic.NET
The two forms classes included below when executed create a single Windows form with a basic drop shadow. When your main form, Form1, loads, Form1 sets the location and size of the 2nd form, frmShadow, to be the same as itself and calls a method that sets the opacity of frmShadow to create a drop shadow effect. When you move Form1, it sets the location of frmShadow to be the same as itself.
Instructions: Copy the declarations and code below and paste directly into your VB project.