I want to draw a line between two points:
https://i.stack.imgur.com/Yuhsd.gif
Lets say that I have 2 panels and want to draw line from Panel1 to Panel2.
Explanation:
dim p1 as new panel
dim p2 as new panel
p1.left = 100
p1.top = 10
me.controls.add(p1)
p2.left = 300
p2.top = 20
me.controls.add(p2)
DrawLineBetween(p1,p2)
try something like below, it is in c# but you can easily convert it vb.net, and you need to adjust x,y co-ordinates as per the panel position.