To draw a single line on the form, the DrawLine(Pen, Point1,Point2) can be used. With multiple lines you can use the DawLines(Pen, Array_Of_Points) method. To draw lines with different colors, you need to specify each color with Pen argument.
Example: Draw lines on the current form
This website intents to provide free and high quality tutorials, examples, exercises and solutions, questions and answers of programming and scripting languages: