AnsweredAssumed Answered

VB .NET drawing a line between two points

Question asked by gdebruin on Mar 7, 2012
Latest reply on Mar 9, 2012 by gdebruin
Hi,

I'm attempting to fix someone's code that draws a line betweent two points. I'm converting it from VBA to VB .NET.

This section appears to be where it's failing. Right after Debug 8.1 or 8.2

  'Draw line between points
Dim calcLength As Double

pSegmentCollection = New Path
pLine = New Line

'Draw a line between first point and second point (FromPoint and ToPoint)
pLine.PutCoords(ToPoint, FromPoint)
Debug.Print("8.1")
calcLength = pLine.Length
Debug.Print("8.2")
pSegmentCollection.AddSegment(pLine)
Debug.Print("8.3")

Any help is appreciated.

Thank you,
cdebruin

Outcomes