whisht

    十年

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2013年3月1日

摘要: private void FrmMain_Paint(object sender, PaintEventArgs e) { GraphicsPath oPath = new GraphicsPath(); int x = 0; int y = 0; int w = Width; int h = Height; int a = 8; Graphics g = CreateGraphics(); oPath.AddArc(x, y, a, a, 180, 90); //边框格式 oPath.AddArc... 阅读全文
posted @ 2013-03-01 10:36 WHISHT 阅读(1280) 评论(0) 推荐(0) 编辑

摘要: 1、设置控件toolStrip1属性RenderMode为System2、重绘代码private void toolStrip1_Paint(object sender, PaintEventArgs e) { if ((sender as ToolStrip).RenderMode == ToolStripRenderMode.System) { Rectangle rect = new Rectangle(0, 0, this.toolStrip1.Width, this.toolStrip1.Height - 2); e.Graphics.SetClip(rect); } ... 阅读全文
posted @ 2013-03-01 10:32 WHISHT 阅读(616) 评论(0) 推荐(0) 编辑