日期:2014-05-18 浏览次数:20935 次
private void button1_Click(object sender, EventArgs e) { System.Drawing.Pen pen = new Pen(Brushes.Blue); pen.DashStyle = System.Drawing.Drawing2D.DashStyle.Dot; this.CreateGraphics().DrawLine(Pens.Red, 0, 0, 100, 100); this.CreateGraphics().DrawLine(pen, 0, 0, 100, 100); }
------解决方案--------------------
楼上是个好方法~