article

Creating a scrollable and zoomable image viewer in C# Part 1

First in a multi part series on creating an image viewer that can be scrolled and zoomed in C#.

avatar
Richard Moss
article

Adding a horizontal scrollbar to a ComboBox using C#

How to add a horizontal scrollbar to a ComboBox in C# using the WS_HSCROLL style and CB_SETHORIZONTALEXTENT message.

avatar
Richard Moss
article

Boulder Dash Part 2: Collision Detection

Sample project for implementing collision detection in the sprites of the Boulder Dash (Boulderdash) arcade game.

avatar
Richard Moss
article

Creating a Windows Forms RadioButton that supports the double click event

The default RadioButton component doesn't offer a double click event. This article describes how to override the default implementation and enable double clicking.

avatar
Richard Moss
article

Boulder Dash Part 1: Implementing Sprite AI

Sample project for implementing the AI of the Butterfly and Firefly sprites of the Boulder Dash (Boulderdash) arcade game.

avatar
Richard Moss
article

Creating a Windows Forms Label that wraps with C#

Article describing how to create a custom implementation of a standard Windows Forms Label to give it the ability to wrap and still autosize.

avatar
Richard Moss
article

Snippet: Mime types and file extensions

Snippet with a pair of helper functions showing how to get the default file extension for a given mime type, or the mime type from a given file extension.

avatar
Richard Moss
article

Unable to update the EntitySet because it has a DefiningQuery and no element exists in the element to support the current operation.

Solving the exception "Unable to update the EntitySet because it has a DefiningQuery and no element exists in the element to support the current operation." when using the Entity Framework

avatar
Richard Moss
article

Converting BBCode into HTML using C#

A simple to use class library for converting text containing BBCode used by popular forum systems into HTML using C#.

avatar
Richard Moss
article

Error 80040154 when trying to use SourceSafe via interop on 64bit Windows

Working around exception "Retrieving the COM class factory for component with CLSID {783CD4E4-9D54-11CF-B8EE-00608CC9A71F} failed due to the following error: 80040154." when trying to connect to SourceSafe via interop.

avatar
Richard Moss
article

Creating a GroupBox containing an image and a custom display rectangle

This article shows how to create a custom GroupBox component, and adjust the client area used for positioning controls hosted in the GroupBox.

avatar
Richard Moss