增加窗体边框3D效果
2015-11-04 11:12
239 查看
/// <summary> /// 增加窗体边框3D效果 /// </summary> /// <param name="e"></param> protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); using (Pen bluePen = new Pen(Color.FromArgb(141, 178, 196))) { e.Graphics.DrawLine(bluePen, 1, 1, this.Width - 2, 1); e.Graphics.DrawLine(bluePen, 1, 1, 1, this.Height - 2); e.Graphics.DrawLine(bluePen, 1, this.Height - 2, this.Width - 2, this.Height - 2); e.Graphics.DrawLine(bluePen, this.Width - 2, 1, this.Width - 2, this.Height - 2); } }
相关文章推荐
- Java Main如何被执行?
- Android开发之EditText属性详解
- 计算机视觉领域的一些牛人博客,超有实力的研究机构等的网站链接
- Android 屏幕适配
- IOS 版本升级提示
- 32位Linux单进程有4G内存的限制
- Odoo8查询产品时提示"maximum recursion depth exceeded while calling a Python object"
- spring数据库读写分类实现方式(现公司使用方式)
- PHP知识点精讲系列之:前言
- excell导出到本地
- C++资源释放
- IE str.trim() 不兼容问题解决方法
- MFC中ComboBox控件用法
- Simplify Path
- 微软专家推荐11个Chrome 插件
- caffe的python接口中的draw_net.py使用时,错误提示及解决办法
- 计算机视觉、机器学习相关领域论文和源代码大集合
- <蓝牙BLE>cc2540从机连接时的动态广播
- iOS开发中那些高效常用的宏
- Kibana: Unknown error while connecting to Elasticsearch