Extension Methods from Marcin Kozub
-
Load & Save configuration
Two methods that extends DataGridView control to save and load columns configuration to specified XML file. More informations (in Polish, example in English) at: http://kozub.net.pl/2012/02/22/datagridview-konfiguracja-kolumn-oraz-zapis-i-odczyt-stanu/ http://kozub.net.pl/2012/03/21/c-extension-methods/
-
IsValidNIP, IsValidREGON, IsValidPESEL
Validation algorithms for Polish identification numbers NIP, REGON & PESEL.
-
SplitIntoParts
Splits long string into smaller parts with given length.
-
DataGridView columns visibility configuration window
This code allows you to change visibility of columns of any DataGridView component at program runtime. It shows simple window filled with list of columns of DataGridView. You can check columns on the list you want to be visible. Use this code with my other DataGridView extension methods http://extensionmethod.net/csharp/datagridview/load-save-configuration.
-
Thread safe event raising
Allows thread-safely raise any event.
-
Load & Save form configuration
This extension methods allows you to load/save location, size and window state (normal, maximized, minimized) of any form to single XML file at program runtime.