以 Windows 形式绘制线图,所有边都可变

Draw Line figure in Windows form with all the sides variable

我知道如何在 windows 表格上绘制矩形、直线和椭圆,但我不确定如何绘制这种类型的 ........figure........ 以 windows 形式。我希望所有三个边都是可变的,这样我就可以改变它的大小,而且线的粗细也应该是可变的。 我可以这样画线

    Dim pen As New Pen(Color.FromArgb(255, 0, 0, 0))
    e.Graphics.DrawLine(pen, 20, 10, 300, 100)

但是我如何画出上面显示的图呢? 我可以将这些行 showhow 分组吗? 任何帮助将不胜感激

干杯 马克

Dim pen As New Pen(Color.FromArgb(255, 0, 0, 0))
' Create array of points that define lines to draw.
Dim points As Point() = {New Point(10, 100), New Point(10, 10), New Point(100, 10), New Point(100, 100)}
'Draw lines to screen.
e.Graphics.DrawLines(Pen, points)