Category Archives: Programming

General programming topic

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.

Posted in .net, C#, Programming | Tagged , , , , , , , , , , | Leave a comment

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 … Continue reading

Posted in .net, C#, Programming | Tagged , , , , , , , , , , , , , | Leave a comment