Tag Archives: MouseMove

Draw, move, and delete line segments in VB.NET

This progra lets you draw, move, and delete line segments from a drawing. It’s a Visual Basic .NET version of the example Draw, move, and delete line segments in C# made by request. Click and drag to draw line segments. … Continue reading

Posted in drawing, graphics | Tagged , , , , , , , , , , , , , , , , , , , , , | Leave a comment

Draw a scrolling family tree in C#

The example Draw a family tree in C# shows how to draw a family tree. Unfortunately if the tree is too big, you can’t make the form big enough to display it all. One solution would be to use smaller … Continue reading

Posted in algorithms, classes, generic, graphics, OOP | Tagged , , , , , , , , , , , , , , , , , , , , , | 1 Comment

Save and restore line drawings in C#

The example Draw and move line segments in C# shows how to build a simple line editor. This example adds the ability to save and restore drawings. The first step is to save all of the drawing information in a … Continue reading

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

Draw trees vertically or horizontally in C#

The example Handle generic TreeNode mouse events in C# shows how to build a generic node class that can draw trees with nodes that contain just about anything. In that example, each each node is centered over its subtree. This … Continue reading

Posted in algorithms, classes, drawing, graphics | Tagged , , , , , , , , , , , , , , , , , , | 3 Comments

Make a WPF line editor C#

This example is a “simple” WPF line editor that lets you add, move, and delete Line objects. The example Draw, move, and delete line segments in C# is a Windows Forms application that does something. The WPF version is a … Continue reading

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

Draw a family tree in C#

This example shows how to use the generic TreeNode class to draw a family tree. The example Draw a tree with nodes containing pictures in C# draws a picture showing part of the British royal family tree. It works, but … Continue reading

Posted in classes, generic, OOP | Tagged , , , , , , , , , , , , , , , , | 12 Comments

Draw a tree with nodes containing pictures in C#

This example uses the generic TreeNode class described in the following posts to draw a tree with nodes containing pictures. Make a generic TreeNode class in C#, Part 1 Make a generic TreeNode class in C#, Part 2 The program … Continue reading

Posted in classes, generic, OOP | Tagged , , , , , , , , , , , , , , , | 1 Comment

Handle generic TreeNode mouse events in C#

This example shows how you can make a generic TreeNode class handle MouseMove and MouseDown events. It adds those events to the example described in the following posts: Make a generic TreeNode class in C#, Part 1 Make a generic … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , , , , | 5 Comments

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 , , , , , , , , , , , , , , , , | 23 Comments

Draw and move polygons snapping them to a grid in C#

This example lets the user draw and move polygons snapping them to a grid. See the example Let the user draw polygons, move them, and add points to them in C# for information on how the program lets the user … Continue reading

Posted in algorithms, drawing, geometry, graphics, mathematics | Tagged , , , , , , , , , , , , , , , , , , , , | Leave a comment