Winform 无边框 绘制自定义边框

 private void FrmLogin_Paint(object sender, PaintEventArgs e)
        {
            ///自定义绘制边框颜色
            //e.Graphics.DrawRectangle(Pens.DarkOliveGreen, 0, 0, this.Width - 1, this.Height - 1);
            e.Graphics.DrawRectangle(Common.FromCustomStyle.CustomFormBorder(), 0, 0, this.Width - 1, this.Height - 1);
        }

猜你喜欢

转载自blog.csdn.net/u010919083/article/details/78367391