Winform 无边框 绘制自定义边框

来源:互联网 发布:服务器端口检测工具 编辑:程序博客网 时间:2024/06/01 09:12
 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);
        }