/// <summary>
/// 增加窗体边框3D效果
/// </summary>
/// <param name="e"></param>
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
using (Pen bluePen = new Pen(Color.FromArgb(, , )))
{
e.Graphics.DrawLine(bluePen, , , this.Width - , );
e.Graphics.DrawLine(bluePen, , , , this.Height - );
e.Graphics.DrawLine(bluePen, , this.Height - , this.Width - , this.Height - );
e.Graphics.DrawLine(bluePen, this.Width - , , this.Width - , this.Height - );
}
}
相关文章
- 04-04增加窗体边框3D效果
- 04-04C#窗体四边框阴影效果的实现
- 04-04Qt无边框窗体-模拟模态窗体抖动效果
- 04-04Qt无边框窗体-模拟模态窗体抖动效果
- 04-04C# 无边框窗体边框阴影效果的简单实现