TextRenderer is slow, DrawString is wrong

After struggling with WinAPI code and hacks in .NET 1.0 I was really looking forward to the TextRenderer class when I first heard about it. But as it turns out, not only is TextRenderer horrible at measuring character size it is also monumentally slow at rendering text. Continued reading >

Dragging and dropping onto a RichTextBox

One of many flaws with the RichTextBox control is its lack of support for drag/drop operations. Luckily it’s simple to add. In fact, it’s so simple you’ll wonder why they didn’t just support it out of the box. Continued reading >

Making sure a number is between 0 and 255

Recently while reworking the code for the Ascgen dotNET I needed to make sure that a variable is between 0 and 255 before converting it to a byte, and I needed it to be as fast as possible since it can get called several million times a second. Continued reading >

Welcome to JMSoftware.co.uk

I’ve set up this blog to allow me to publish articles, small programs, and general thoughts without cluttering up my main program’s blog with off-topic posts.

Wordpress makes a surprisingly good CMS, but it’ll take me a while before I get everything set up just how I want it so excuse the mess.