Visual Basic uses an unusual syntax for the Line method, which is not supported for Windows CE. The DrawLine method, which has the normal method call syntax, is provided instead.
Example of statement with this error:
ThisForm.Line (X1, Y1) - (X2, Y2), Color
Change to:
ThisForm.DrawLine X1, Y1, X2, Y2, Color