private void InitForm() { if (isBorderless && !IsDesignMode) { formNCAreaDecorator = new FormNCAreaDecorator(this); formShadowDecorator = new FormShadowDecorator(this); } BackColor = Color.White; }
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; }