예제 #1
0
        private void InitForm()
        {
            if (isBorderless && !IsDesignMode)
            {
                formNCAreaDecorator = new FormNCAreaDecorator(this);
                formShadowDecorator = new FormShadowDecorator(this);
            }

            BackColor = Color.White;
        }
예제 #2
0
        private void InitForm()
        {
            //SetStyle(ControlStyles.ResizeRedraw, true);
            //SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            //SetStyle(ControlStyles.AllPaintingInWmPaint, true);

            //DoubleBuffered = true;

            if (isBorderless && !IsDesignMode)
            {
                formNCAreaDecorator = new FormNCAreaDecorator(this);
                formShadowDecorator = new FormShadowDecorator(this, false);
            }

            BackColor = Color.White;
        }