J
Jem
Hi all
I have the following code which draws a vertical line on a form...
Dim VertCrossHairX1 As Integer = 75
Dim VertCrossHairX2 As Integer = 75
Dim VertCrossHairY1 As Integer = 70
Dim VertCrossHairY2 As Integer = 80
MyGraphics.DrawLine(RedPen, x1:=VertCrossHairX1, y1:=VertCrossHairY1,
x2:=VertCrossHairX2, y2:=VertCrossHairY2)
By altering the values in the variablesI am able to rotate this line. The
question is - How do I obtain the angle of the line each time it is rotated
to a different angle? I would like the variable 'Angle' to store this value
for use in a calculation.
I'm a very novice prgrammer and would appreciate any help/guidance as to how
to go about this.
Many Thanks
Jem
I have the following code which draws a vertical line on a form...
Dim VertCrossHairX1 As Integer = 75
Dim VertCrossHairX2 As Integer = 75
Dim VertCrossHairY1 As Integer = 70
Dim VertCrossHairY2 As Integer = 80
MyGraphics.DrawLine(RedPen, x1:=VertCrossHairX1, y1:=VertCrossHairY1,
x2:=VertCrossHairX2, y2:=VertCrossHairY2)
By altering the values in the variablesI am able to rotate this line. The
question is - How do I obtain the angle of the line each time it is rotated
to a different angle? I would like the variable 'Angle' to store this value
for use in a calculation.
I'm a very novice prgrammer and would appreciate any help/guidance as to how
to go about this.
Many Thanks
Jem