首页 > 其他分享 >Winform 无边框 绘制自定义边框

Winform 无边框 绘制自定义边框

时间:2022-10-28 16:32:11浏览次数:45  
标签:自定义 边框 Width Graphics Height DrawRectangle 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);

}

标签:自定义,边框,Width,Graphics,Height,DrawRectangle,Winform
From: https://blog.51cto.com/51souta/5805047

相关文章