i want to draw a line in windows form in c# with the help of mouse and by clicking on line button it should allow me to draw a line on form or panel as in paint it allows us to do so and while drawing the 2nd line first line should not disappear.

rpley soon.

Recommended Answers

Do the same thing as for a rectangle, but store the points where the mouse down and moouse move (up) go to and draw them in the Paint method.

Jump to Post

All 2 Replies

Do the same thing as for a rectangle, but store the points where the mouse down and moouse move (up) go to and draw them in the Paint method.

Do the same thing as for a rectangle, but store the points where the mouse down and moouse move (up) go to and draw them in the Paint method.

thank you.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.