日期:2014-05-19  浏览次数:21043 次

如何在vs2005中画虚线,并合并单元格?
如题?

------解决方案--------------------
Graphics g = this.panel1.CreateGraphics(); //panel1要画线的容器
Pen pen = new Pen(Color.Black); // pen可定义线条类型.
Point p1 = new Point(); //起始点
Point p2 = new Point(); //终止点
p1.X = 10 ;
p1.Y = 10 ;
p2.X = 100 ;
p2.Y = 100 ;
g.DrawLine(pen, p1, p2);