Winform画带箭头的折线
怎么样用winform画一个带箭头的折线呢?求代码
winform 折线 带箭头
--------------------编程问答--------------------
private void Form1_Paint(object sender, PaintEventArgs e)
{
Pen p = new Pen(Color.Black, 1);
System.Drawing.Drawing2D.AdjustableArrowCap lineArrow =
new System.Drawing.Drawing2D.AdjustableArrowCap(4, 4, true);
p.CustomEndCap = lineArrow;
this.CreateGraphics().DrawLine(p, new Point(100, 100), new Point(200,200));
}
--------------------编程问答--------------------
版主这是敬业啊,我刚要回答,用画笔是一种方法。
--------------------编程问答--------------------
学习~~~~~~~~~~~~~
补充:.NET技术 , C#