I can find plenty of examples of how to draw a line in vb.net online.
I however I cannot find any examples of how to draw lines at a specific angle.
Could someone tell me how to do this?Answer1:
You'll need to do a bit of math using
y1 = starting position of line<br />
angleInRadians = angle on the line converted to Radians
x2 = lineLength * Math.Cos(angleInRadians) + x1 y2 = lineLength * Math.Sin(angleInRadians) + y1
Then you can draw a line from (
y1) to (