You can use CustomLineCap
Test by modifying the MSDN sample with a square :
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have a form and a picturebox on it.
and I must draw broken line by click on picturebox and by double click on picturebox The lines is finished. I khnow how do it by draw.lines, but my problem is the end of the last line where the rectangle should be.
I don't khnow how put a rectangle at the end of last line with the right direction to the last line!
I hope I have explained my problem correctly.
You can use CustomLineCap
Test by modifying the MSDN sample with a square :