How to Get ( during runtime) the lenght of a line drwan between two points
A (x,y) and B (x1,y1).
Printable View
How to Get ( during runtime) the lenght of a line drwan between two points
A (x,y) and B (x1,y1).
line control?
if you've taken pre pre pre algebra you should be able to find the length of a line by having the coordinates of its end points :p
deja vu:confused:
VB Code:
dim iLen as Integer iLen = Abs(((Y1-Y2)^2)+((X1-X2)^2)) 'formula, posted b4 by SLH MsgBox iLen
VB Code:
dim iLen as Integer iLen = Abs(((Y1-Y2)^2)+((X1-X2)^2)) [B]^ 0.5[/B] 'formula, posted b4 by SLH MsgBox iLen