Tag Archives: MouseUp

Let the user draw polygons in C#

This example shows how you can let the user draw polygons with the mouse. It represents each polygon as a list of points. It stores all of the finished polygons in a list of lists of points named Polygons, which … Continue reading

Posted in algorithms, drawing, graphics | Tagged , , , , , , , , , , , , , | 23 Comments

Let the user draw and move line segments snapping their positions to a snap grid in C#

See the example Draw and move line segments in C# for basic information about the program. This example does the same thing, but lets you snap segments and end points to a grid. When the drawing PictureBox is resized or … Continue reading

Posted in algorithms, drawing, graphics, mathematics | Tagged , , , , , , , , , , , , , , , , , | 7 Comments

Draw and move line segments in C#

This example lets the user draw and move line segments. It lets you perform three different operations depending on what is below the mouse. When the mouse is over a segment, the cursor changes to a hand. Then you can … Continue reading

Posted in drawing, graphics | Tagged , , , , , , , , , , , , | 77 Comments