Tag Archives: generic classes

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

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 generic TreeNode class with link weights in C#

The post Handle generic TreeNode mouse events in C# explains how you can build and draw a tree where the nodes contain generic items. This example adds the ability to display link weights. The generic TreeNode class now has a … Continue reading

Posted in algorithms, classes, generic, OOP | Tagged , , , , , , , , , , , , , | 6 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

Make a generic TreeNode class in C#, Part 2

This post explains how the TreeNode class uses its generic TreeNode class to arrange and draw a tree. For information about that classes used by this example and how to define the generic TreeNode class it uses, see Make a … Continue reading

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

Make a generic TreeNode class in C#, Part 1

This example shows how to build a generic TreeNode class that can draw a tree holding just about anything. This is kind of a tricky example, so I’m doing it in two parts. This entry explains the classes and interfaces … Continue reading

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