Visual Basic 6.0 uses a unique syntax for the Line method, which the toolkit does not support. Instead, the toolkit provides the DrawLine method, which has the standard method call syntax.
The following code example shows a statement that generates a Line Method Not Supported error.
ThisForm.Line (X1, Y1) - (X2, Y2), Color
The following code example shows how to revise the statement to avoid the error.
ThisForm.DrawLine X1, Y1, X2, Y2, Color