Home:ALL Converter>Draw line in picture box with two mouse clicks in C# windows form

Draw line in picture box with two mouse clicks in C# windows form

Ask Time:2017-01-31T18:15:46         Author:user3128239

Json Formatter

I need help drawing line on picture box.

I get coordinates for point2 and point2 on mouse click and I drew line between this two coordinates.

What I need to do is to take value for point1 and start drawing the line from that point1, and line should follow my cursor and when I click second time on picture box it should be drawn.

Any help would be appreciated.

Author:user3128239,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/41954898/draw-line-in-picture-box-with-two-mouse-clicks-in-c-sharp-windows-form
yy