This page demonstates C# and .Net code.
Using System.Reflection with the TreeView Control
The .Net Tree view class is one of the most useful .Net
controls for displaying complex data. This demo shows how to create a series of
TreeNodes that correspond to an object and its contained objects. I also use
reflection to walk the object Type information. Reflection allows arbitrary
unknown objects to be examined and displayed.
Simple Animation, Threads, Sound, Graphics
WinForms can get pretty boring. You can spice them up with
various animation and effects. Here, I use WinForms, Images and Window
Multimedia to make a very simple Wack-a-Mole Game. All the graphics are 2D and
very simple. This adds simple motion and sound to a standard GUI.
The sound system uses PInvoke to use the Windows API since
.Net does not have sound support built into the base classes.
The Threading system is also interesting. Many
applications have a GUI that communicates with a data generating system in
another thread. This demo is doing that in a safe manner.