Monthly Archives: September 2012

Book Review: Super Scratch Programming Adventure!: Learn to Program By Making Cool Games

Super Scratch Programming Adventure!: Learn to Program By Making Cool Games   $24.95, 160 pages, 2012 By the LEAD Project No Starch Press ISBN 13: 978-1593274092 A great, non-threatening introduction to programming This book

Posted in books, games | Leave a comment

Draw animated exploding 3-dimensional pie slices in C#

The example Draw 3-dimensional pie slices in C# shows how to highlight one or more 3-D pie slices by “exploding” them. This example draws even more attention to the exploded pie slices by animating their explosion. The program controls the … Continue reading

Posted in algorithms, animation, graphics, mathematics, multimedia | Leave a comment

Use Windows Forms controls to make multiple stacked expanders in C#

The example Make an expander in C# shows how to make a simple expander. By collapsing a Panel, the program allows the user to hide unwanted information. That frees up space on the form that the Panel used to occupy. … Continue reading

Posted in animation, controls, multimedia | 2 Comments

Use Windows Forms controls to make an expander in C#

WPF, Silverlight, Metro, or whatever Microsoft is calling this stuff now days has a few new useful controls in the System.Windows.Controls namespace including the Expander. An Expander displays a small arrow button and a panel where you can place other … Continue reading

Posted in animation, controls, multimedia | Leave a comment

Calculate where a line segment and an ellipse intersect in C#

Finding the intersection between a line segment and an ellipse requires a lot of mathematics. It’s not particularly hard mathematics but if you’d rather skip it, you can use the following links to jump to the other parts of this … Continue reading

Posted in algorithms, geometry, graphics, mathematics | 3 Comments

Make an image with a transparent background for use on a button in C#

It seems like I keep writing this program because this is the sort of thing I need to do fairly often. I wanted to use a simple image with a transparent background for a button image. Unfortunately MSPaint doesn’t know … Continue reading

Posted in controls, graphics | Leave a comment

List USB devices on the system in C#

This program uses WMI (Windows Management Instrumentation) to query for USB devices. To use WMI, add a references to System.Management and add a “using System.Management” statement. When it starts, this example uses the following code to list USB devices. // … Continue reading

Posted in system | Leave a comment

Now Available: Visual Studio Express 2012 for Windows Desktop

In case you haven’t heard, Visual Studio 2012 Express Edition does not support development for the desktop, only for the Windows 8 Metro interface. You can only build desktop applications with the Professional edition or above. Because of the hue … Continue reading

Posted in Uncategorized | 4 Comments

Draw lines made up of animated “marching ants” in C#

The example Draw two-colored dashed lines that are visible on any background in C# shows how to draw lines that are visible above any backgrounds. If the background is very cluttered, however, it may still be somewhat hard to see … Continue reading

Posted in Uncategorized | 4 Comments

Draw two-colored dashed lines that are visible on any background in C#

Sometimes it can be hard to draw lines that are visible on top of a photo or other complicated background. For example, when the user is clicking and dragging to select an area in a photograph, you need the user … Continue reading

Posted in graphics | Leave a comment