How to draw many lines on panel
:confused: :confused:
Doing a Panel1.refresh only seems to paint the last line.
Note: this is a simplified example of a complex app that generates a flowchat of TextBoxes joined by lines. In VB6 the line control was used, now I'm very confused!!
Private Sub Button1_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button1.Click
DrawLineOnPanel1(20, 40, 60, 80) 'Draw one line
DrawLineOnPanel1(40, 60, 80, 100) 'Draw a second line
'......
DrawLineOnPanel1(40, 60, 80, 100) 'Draw a 100th line
End Sub
Public Function DrawLineOnPanel1(ByVal inXp As Short,
ByVal inYp As Short, ByVal inXd As Short, ByVal inYd
As Short) As Boolean
'What code goes here???
End Function