Exemple #1
0
 public static void SetGlassEffect(Form Frm, int fromTop = 0, int fromRight = 0, int fromBottom = 0, int fromLeft = 0)
 {
     if (GlassEnabled && (Frm != null))
     {
         APIs.MARGINS margins = new APIs.MARGINS
         {
             Top    = fromTop,
             Right  = fromRight,
             Left   = fromLeft,
             Bottom = fromBottom
         };
         APIs.DwmExtendFrameIntoClientArea(Frm.Handle, ref margins);
         Frm.Invalidate();
     }
 }