public PaletteShadow(ItemPalette.Palette parent) { this.parent = parent; base.SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint | ControlStyles.SupportsTransparentBackColor | ControlStyles.UserPaint, true); base.FormBorderStyle = FormBorderStyle.None; this.BackColor = Color.White; base.ShowInTaskbar = false; base.MaximizeBox = false; base.ControlBox = false; base.Opacity = 0.5; base.StartPosition = FormStartPosition.Manual; base.Enabled = false; base.Region = parent.Region; base.Location = new Point(this.parent.Location.X + ItemPalette.Palette.DropShadowWidth, this.parent.Location.Y + ItemPalette.Palette.DropShadowWidth); }