For i=0 To 9
tantheta=(y(1)-y(0))/(x(i)-x(i-1))
deltay=(y(1)-y(0))/10
oldx=x(i)
for j=1 to 9
newx=(j*deltay)/tantheta
Linecvs.DrawLine(oldx,y(i)+((j-1)*deltay), newx, y(i)+((j*deltay),Colors.Blue,ChartLineWidth)
oldx=newx
now=DateTime.now + 100
Do While DateTime.now<now
Loop
allpanels(2).Invalidate
Next
Next