Tag Archives: C# programming. MouseDown

Draw, move, and delete line segments in C#

This example shows how to make a drawing program that lets you draw, move, and delete line segments. It’s based on the example Draw and move line segments in C#. See that example for information about how the program lets … Continue reading

Posted in drawing, graphics | Tagged , , , , , , , , , , , , , , , , | 31 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