article

Using the XmlReader class with C#

Some of the project files created by Cyotek Sitemap Creator and WebCopy are fairly large and the load performance of such files is poor. The files are saved using a XmlWriter class which is nice and fast. When reading the files back however, currently the whole file is loaded into a XmlDocument and then XPath expressions are used to pull out the values. This article describes our effort at converting the load code to use a XmlReader instead.

avatar
Richard Moss
article

Comparing the properties of two objects via Reflection and C#

As part of the refactoring I was doing to the load code for crawler projects I needed a way of verifying that new code was loading data correctly. As it would be extremely time consuming to manually compare the objects, I used Reflection to compare the different objects and their properties. This article briefly describes the process and provides a complete helper function you can use in your own projects.

avatar
Richard Moss
article

Creating a trackback handler using C#

An article showing how to create a trackback handler in C# for use with either ASP.NET webforms or MVC.

avatar
Richard Moss
article

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

Fourth and final in a multi part series on creating an image viewer that can be scrolled and zoomed in C#. After part three added panning, we now add zoom support via the mouse wheel and clicking with the left or right buttons, along with some additional display properties.

avatar
Richard Moss
article

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

Third in a multi part series on creating an image viewer that can be scrolled and zoomed in C#. After part two added scrolling support, we now extend this to support panning and keyboard scrolling.

avatar
Richard Moss
article

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

Second in a multi part series on creating an image viewer that can be scrolled and zoomed in C#. After part one created the initial component with auto resize, we now add scrolling support.

avatar
Richard Moss
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