Dim maxIndex As Integer = zahyo.Length - 1 For i = 0 To maxIndex For j = 0 To maxIndex If i <> j Then e.Graphics.DrawLine(Pens.Black, zahyo(i), zahyo(j)) End If Next Next
Dim maxIndex As Integer = zahyo.Length - 1 For i = 1 To maxIndex e.Graphics.DrawLine(Pens.Black, zahyo(i - 1), zahyo(i)) Next If maxIndex > 0 Then e.Graphics.DrawLine(Pens.Black, zahyo(maxIndex), zahyo(0)) End If