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.
async c# c++ class console data gui interop javascript math media network pascal php powershell reflection sec userscript winforms wpf xml × By relevance By update time By creation time By title Archived contents
TxTranslation c# class data winforms wpf xml ★★★★★★
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 c# class data ★★★★★★
Sorts strings that contain numbers, not character-wise (lexical) but regarding the numeric value: “a1” < “a2” < “a10” < “a11” < “a20”
FieldLog c# class data ★★★★★
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.
AsyncTcpClient & AsyncTcpListener async c# class network ★★★★★
An asynchronous variant of TcpClient and TcpListener for .NET Standard. Allows implementing TCP clients or servers with just a few callback methods.
msgpack.js data interop javascript network ★★★★★
A minimal yet complete MessagePack implementation for JavaScript.
ViewModelKit.Fody c# class wpf ★★★★★
Makes WPF ViewModel classes smart by default. Implements INotifyPropertyChanged and DelegateCommands for auto properties, recognises dependent properties, connects property changed handlers.
ColorMath class c# class math media ★★★★★
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 c# class data wpf ★★★★★
A WPF TreeView control with support for multiple selection.
ViewModelBase class c# class reflection wpf ★★★★★
Base class for ViewModels by the MVVM pattern, with several simplifications for derived classes.
DelayedCall class async c# 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.
ValidatingTextBox control c# class gui winforms ★★★★
Pimped up TextBox with input validation features and support for common hotkeys for text editing.
DelegateCommand class c# class wpf ★★★★
Simplifies commands for ViewModels by the MVVM pattern. Provides an ICommand implementation which relays the Execute and CanExecute method to the specified delegates.
ProgressSpinner control c# class gui winforms ★★★★
Graphical animated display of an activity and progress indicator, in a single control.
ViewCommand pattern c# class wpf ★★★★
Describes a method for the MVVM design pattern to control a View from a ViewModel with commands.
SettingsAdapterFactory class c# class data reflection xml ★★★★
Generates a dynamic implementation of an interface with properties that binds to a settings store and implements INotifyPropertyChanged.
PowerShell build framework powershell ★★★★
Automated, local building of Visual Studio solutions and calling external tools like unit tests, source code commit, obfuscation, digitally signing, file publishing and transfer.
coati JavaScript library async gui javascript ★★★★
All-in-one JavaScript library for all useful functions on a web page. DOM access with events, AJAX, animations, colour maths and more complex UI effects like for images presentation.
ColorButton control c# class gui media winforms ★★★★
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.
ColorSelector control c# class gui media winforms ★★★★
Selection of a colour from a pallette or by adjusting the RGB and HSL components with several graphical displays.
ColorWheel control c# class gui media winforms ★★★★
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 c# class data xml ★★★★
Simple read and write access to XML documents through XPath expressions. Automatically creates missing XML elements when writing with XPath.
Animation class c# class winforms ★★★
Provides methods for smooth resizing and moving of controls/windows and for fading windows in and out.
JobList class async c# 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.
Shaped image text flow media php ★★★
Lets text on HTML pages flow around the real shape of an image. Analyses the image transparency and generates corresponding HTML code. Fast access through file caching.
InfoLabel control c# class gui winforms ★★★
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 c# class gui ★★★
Provides methods to change the mouse behaviour in applications.
CollectionDictionary class c# class data ★★★
A Dictionary implementation that stores multiple values for each key.
Environment data for PHP class php ★★★
Environment functions for compatibility with different server environments and to query information about the client (browser).
GeoIP query class php ★★★
Looks up location data for an IP address from a portable, compact database. Uses data from MaxMind GeoIP or GeoLite.
GetRelativePath (C#) c# ★★★
Determines the relative path of a file name to a reference directory.
IPv6 address formatting network php ★★★
Expands or shortens IPv6 addresses in short or extended notation.
CommandLineParser class c# class console ★★
Provides methods for reading and accessing of command-line parameters and options.
ErrorHandling class c# 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 c# class data wpf ★★
Adapts an ObservableCollection of a type for use as an ObservableCollection of a base type where covariance doesn’t work.
OpLock class c# class ★★
Lightweight, non-threadsafe locking mechanism to mutually lock methods from executing the same operation.
SeparatorLabel control c# class gui winforms ★★
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 c# 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.
ColorFader control c# class gui media winforms ★★
Selection of a blend colour between two specified colours or of a colour hue with graphical display.
Markup parser class data php ★★
Converts texts with a simple plain-text formatting to HTML. With emphases, hyperlinks, lists, tables and other format features.
MyEnvironment class c# class ★★
Provides information about the operating system, system architecture, user account or the own assembly.
TaskHelper class async c# class ★★
Functions to start tasks in the background and synchronise them with the UI thread, as well as to wait for the WPF dispatcher.
Arguments parser console php ★★
Provides direct access to individual command-line parameters in PHP CLI applications.
AtomFeed class class data php xml ★★
Creates an Atom 1.0 newsfeed.
ConsoleHelper class c# class console ★★
Functions for comfortable input and output in console applications. Includes environment checks, a progress bar, cursor movement, and line wrapping output.
CString c++ class ★★
Provides MFC-like string support, without MFC.
Display MSDN content in English javascript userscript ★★
Redirects regional MSDN websites to the en-US original site to prevent annoying translation elements to appear. They also have more current (fixed) content there.
Line control c# class gui winforms ★★
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.
Settings class c# class data xml ★★
Stores data such as program settings in an XML file and takes care about easy access, safe storage, change notification and control binding.
SystemSound class c# class media ★★
Allows for playing back of system sounds that are configured in the control panel.
Unix timestamp/DateTime conversion c# math ★★
Provides simple conversion methods between UNIX timestamps and .NET DateTime values.
UpdateCheck class c# class network xml ★★
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.
Advanced BBCode Parser data php ★
Complete BBCode parser with configurable tags, styles, smileys and syntax validation.
ShellLink c++ ★
Resolves and creates shell links.
BackgroundWorker class async c# class ★
Implements the .NET 2.0 class for the .NET 1.1 framework and offers the possibility to customise it also in newer frameworks.
GetRelativePath (C++) c++ ★
Determines the relative path of a file name to a reference directory.
MaidenheadLocator class c# class math ★
Converting between Maidenhead locator (used in amateur radio) and latitude/longitude, and calculating of distance and bearing.
TEMPer class c# class interop ★
Reads measured values from USB TEMPer thermometers and hygrometers.
Locator distance calculation math pascal ★
Computes the distance between two Maidenhead Locators, in two different versions.
GetFileVersion c++ ★
Gets file (application, DLL, …) version information.
GetSpecialFolderPath c++ ★
Gets the path to the system special folder that is identified by the specified parameter value.
Number system conversion math pascal ★
Converts numbers between arbitrary number systems (binary, octal, decimal, hexadecimal, etc.).
CaptureScreenToBitmap c++ media ★
Takes a screenshot and saves it to a bitmap image.
Clipboard c++ ★
Reads and writes text from and to the Windows clipboard.
FormatErrorMsg c++ ★
Returns the system description for the specified error code.
GetOsVersion c++ ★
Gets the Windows operating system version.
LocalMappedUNCPath c++ ★
Gets the local path that is currently mapped to the specified UNC path.
Ping class c# class network ★
Performs an ICMP ping to the specified host and measures the time or returns an error message.
RunApplication c++ ★
Runs an application and waits for it to return.
ShellBrowseForFolder c++ gui ★
Shows a shell BrowseForFolder dialog box with an initial path set.
PalmDatebook class c# class data interop ★
Reads the calendar database of the Palm Desktop application.
Summary
70 items, ca. 67 780 lines of code, estimated development costs: 140 000 €