public StiPopupForm(Control parentControl) : base(parentControl)
        {
            if (IsDrawShadow)
            {
                this.shadow = new StiShadowPopupForm(parentControl);
            }

            this.AutoScaleMode = AutoScaleMode.Font;
            this.SetStyle(ControlStyles.DoubleBuffer, false);
            //this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            this.SetStyle(ControlStyles.UserPaint, true);
        }
 public override void ClosePopupForm()
 {
     if (IsDrawShadow && (!is64Bit))
     {
         if (shadow != null)
         {
             shadow.ClosePopupForm();
             shadow.Dispose();
             shadow = null;
         }
     }
     base.ClosePopupForm();
 }