Esempio n. 1
0
        public void OnPaint()
        {
            DrawFactory.Marg.Left   = 0;
            DrawFactory.Marg.Top    = 0;
            DrawFactory.Marg.Right  = this.Width;
            DrawFactory.Marg.Bottom = this.Height;

            NativeImport.DwmExtendFrameIntoClientArea(this.Handle, ref DrawFactory.Marg);
        }