A C# Command-Line Parser
.NET applications can use Environment.CommandLine to access any command-line arguments that were supplied to the program. However, there's more work to do if your command line support many options. Here's a command-line parser class to make it easy.
By Jonathan Wood •
Created on Tuesday, March 22, 2011
|
What's New in C# 6 (Part 2)
Visual Studio 2015 was released on July 20, 2015, and with it came a new version of C#. This article is part two of a two-part article that introduces the new features in C# 6.0.
By Jonathan Wood •
Created on Thursday, July 30, 2015
|
Implement Accelerators in an MFC Dialog Box
Menus within MFC dialog boxes do not, by default, support accelerators. This articles shows the simple change required to implement accelerators in a dialog box.
By Jonathan Wood •
Updated on Sunday, December 12, 2010
|
Saving and Restoring a Form's Window Position
Here's some simple code to save and restore the position of your application's main window between sessions.
By Jonathan Wood •
Created on Sunday, September 21, 2014
|
Creating a User-Friendly TimeSpan String
The .NET TimeSpan class is great for keeping track of the difference between two instances of DateTime. However, while TimeSpan has a lot of formatting options, none of them produce a very user-friendly result. Here's a class I wrote to produce a much friendly description from a TimeSpan.
By Jonathan Wood •
Updated on Tuesday, October 9, 2012
|
Adding HTML Help to Existing Dialog-Based Application
I recently had to add HTML help to an existing MFC dialog-based application. This article is my attempt to document what I learned.
By Jonathan Wood •
Created on Wednesday, September 6, 2017
|
What's New in C# 6 (Part 1)
Visual Studio 2015 was released on July 20, 2015, and with it came a new version of C#. This article is part one of a two-part article that introduces the new features in C# 6.0.
By Jonathan Wood •
Created on Wednesday, July 29, 2015
|
Converting Between Integers and Strings Using Any Base
.NET provides the Convert class, which among other things can convert between integers and strings using different bases. Inexplicably, the Convert class only supports base 2, 8, 10 and 16. Here's a class that can convert between integers and strings using any base.
By Jonathan Wood •
Created on Monday, April 11, 2011
|
Formatting DateTime Ranges
The .NET framework has many options for formatting dates and times. However, it doesn't provide a lot of support for formatting date and time ranges. This simple class provides the missing functionality.
By Jonathan Wood •
Created on Wednesday, July 30, 2014
|
An LCD Control
This article presents a simple user control that emulates an LCD display. You can use it to create a mechanical look to your data display.
By Jonathan Wood •
Updated on Friday, December 31, 2010
|