Monthly Archives: February 2014

Draw “illuminated” text where each paragraph begins with an oversized letter in C#

(I’m taking a short break from three-dimensional WPF graphics. If you particularly want (or don’t want) to see more about that topics, please let me know. I also have a new (very interesting) project starting so my posting frequency may … Continue reading

Posted in fonts, graphics, strings | 1 Comment

Merge the contents of one directory into another in C#

Once upon a time, if you used Windows Explorer to move a file from one directory to another and the destination directory already contained a file with that name, you had the option of keeping both versions of the file. … Continue reading

Posted in directories, files, system, tools | Leave a comment

Use a standard Windows dialog to let the user select a folder in C#

The .NET OpenFileDialog and SaveFileDialog are fairly full-featured. They’re a lot like Windows Explorer with some added file selection capabilities thrown in. In contrast, the FolderBrowserDialog is pretty pathetic. It lets you use only a hierarchical tree-like display, doesn’t provide … Continue reading

Posted in API, controls, files | 7 Comments

Make a simple tip calculator (Tipster) for Windows Phone in C#

You can view and download the app for free in the Windows Phone Store. I wrote this program mostly to see how hard it was to submit an application to the Windows Phone Store. Submission did require a fair amount … Continue reading

Posted in mathematics, phone | Leave a comment

Use the automatic code converters at developerFusion to convert C# code into Visual Basic, Ruby, and Python

One of the most important uses for reflection is analyzing code to figure out what it does. Once you know what the code does, you can emit new code to do the same thing in a different programming language. The … Continue reading

Posted in programs, reflection, syntax | Leave a comment

Use an ImageAttributes object to convert an image to shades of red, green, or blue color in C#

The example Use an ImageAttributes object to adjust an image’s brightness in C# explains how to use ImageAttributes and ColorMatrix objects to adjust an image’s brightness. That example scaled each pixel’s red, green, and blue color components by the same … Continue reading

Posted in graphics | Leave a comment