Source Codes

Hardware runs the world. Software controls the hardware. Code generates the software. Have you coded today?

This is the hub for code snippets, useful functions, classes and components that have proven useful in many applications and can make repeating tasks a lot easier.

You can filter the list by tags or sort it with the following controls. Particularly interesting items are highlighted in yellow.

.net apache async c# c++ class console data gui interop javascript math media network pascal php sec winforms wpf xml ×

TxTranslation.netc#classdatawinformswpfxml♥♥♥♥♥♥
Simple yet powerful translation and localisation library for .NET applications. Supports XAML binding, language fallbacks, count-specific translations, placeholders, and number and time formatting.

Natural sorting of strings.netc#classdata♥♥♥♥♥♥
Sorts strings that contain numbers, not character-wise (lexical) but regarding the numeric value: “a1” < “a2” < “a10” < “a11” < “a20”

DelayedCall class.netasyncc#class♥♥♥♥♥♥
Very easy asynchronous delayed function calls. Typesafe invocation of nearly any method through generic parameters. Delayed calls can be cancelled, pulled forward or repeated later.

FieldLog.netc#classdata♥♥♥♥♥
Fast and comprehensive logging tool for .NET applications. Designed for high-performance, storage-efficient, always-on logging and comes with a useful log viewer application.

ColorMath class.netc#classmathmedia♥♥♥♥♥
Functions for blending of multiple colours, conversion between HSL and RGB colour space, greyscale conversion and more helper functions for handling of colours.

MultiSelectTreeView control.netc#classdatawpf♥♥♥♥♥
A WPF TreeView control with support for multiple selection.

ValidatingTextBox control.netc#classguiwinforms♥♥♥♥
Pimped up TextBox with input validation features and support for common hotkeys for text editing.

ProgressSpinner control.netc#classguiwinforms♥♥♥♥
Graphical animated display of an activity and progress indicator, in a single control.

ViewCommand pattern.netc#classwpf♥♥♥♥
Describes a method for the MVVM design pattern to control a View from a ViewModel with commands.

ColorButton control.netc#classguimediawinforms♥♥♥♥
A button that displays a colour field instead of a text label. It allows selecting a colour from multiple graphic displays in a drop-down view.

ColorFader control.netc#classguimediawinforms♥♥♥♥
Selection of a blend colour between two specified colours or of a colour hue with graphical display.

ColorSelector control.netc#classguimediawinforms♥♥♥♥
Selection of a colour from a pallette or by adjusting the RGB and HSL components with several graphical displays.

ColorWheel control.netc#classguimediawinforms♥♥♥♥
Selection of a colour using a colour wheel, an intuitive graphical visualisation of the HSL colour space, as known from Paint Shop Pro.

EasyXml class.netc#classdataxml♥♥♥♥
Simple read and write access to XML documents through XPath expressions. Automatically creates missing XML elements when writing with XPath.

Animation class.netc#classwinforms♥♥♥
Provides methods for smooth resizing and moving of controls/windows and for fading windows in and out.

JobList class.netasyncc#class♥♥♥
Works off tasks (jobs) in parallel in the background with a specified number of worker threads to optimally use the computing power of multi-core processors.

InfoLabel control.netc#classguiwinforms♥♥♥
Displays highlighted clickable text messages with an icon in a window on which the user can perform some action or open a menu with further options.

MouseFilter component.netc#classgui♥♥♥
Provides methods to change the mouse behaviour in applications.

Settings class.netc#classdataxml♥♥♥
Stores data such as program settings in an XML file and takes care about easy access, safe storage, change notification and control binding.

GetRelativePath (C#).netc#♥♥♥
Determines the relative path of a file name to a reference directory.

CommandLineParser class.netc#classconsole♥♥
Provides methods for reading and accessing of command-line parameters and options.

ErrorHandling class.netc#class♥♥
Logs much error data into a file on (unhandled) application failures which can be helpful for developers (crash dump) and displays a general error message.

ObservableCollectionAdapter class.netc#classdatawpf♥♥
Adapts an ObservableCollection of a type for use as an ObservableCollection of a base type where covariance doesn’t work.

OpLock class.netc#class♥♥
Lightweight, non-threadsafe locking mechanism to mutually lock methods from executing the same operation.

SeparatorLabel control.netc#classguiwinforms♥♥
Combines a Label with a horizontal line, to be used as separator and caption. That looks more simple than a GroupBox with a surrounding border.

UCrypto class.netc#sec♥♥
Securely encrypts strings and data for the logged in user or the local computer with the Windows API. A separate key is not required.

MyEnvironment class.netc#class♥♥
Provides information about the operating system, system architecture, user account or the own assembly.

Line control.netc#classguiwinforms♥♥
Displays simple lines in a window just like good old VB6’s Line control (and later WPF’s Line shape), also with dashed or 3D style.

SystemSound class.netc#classmedia♥♥
Allows for playing back of system sounds that are configured in the control panel.

Unix timestamp/DateTime conversion.netc#math♥♥
Provides simple conversion methods between UNIX timestamps and .NET DateTime values.

UpdateCheck class.netc#classnetworkxml♥♥
Provides simple methods to check from an XML file on the web whether a program is available in a newer version, and to open the website.

BackgroundWorker class.netasyncc#class
Implements the .NET 2.0 class for the .NET 1.1 framework and offers the possibility to customise it also in newer frameworks.

MaidenheadLocator class.netc#classmath
Converting between Maidenhead locator (used in amateur radio) and latitude/longitude, and calculating of distance and bearing.

TEMPer class.netc#classinterop
Reads measured values from USB TEMPer thermometers and hygrometers.

Ping class.netc#classnetwork
Performs an ICMP ping to the specified host and measures the time or returns an error message.

PalmDatebook class.netc#classdatainterop
Reads the calendar database of the Palm Desktop application.

Summary

36 items, ca. 39 490 lines of code, estimated development costs: 79 000 €