How to read a embedded resource to String in C# and VB.NET
To read a embedded resource to String in C# and VB.NET you can use the snippet below. Keep in mind that this snippet is using Encoding.Default which might not always…
All the Code Snippets and Samples you need
To read a embedded resource to String in C# and VB.NET you can use the snippet below. Keep in mind that this snippet is using Encoding.Default which might not always…
To get all Description Attributes of an Enum using C# or VB.NET you can use the snippet below. Sample C# – Class Usage C# Sample VB.NET – Class Usage VB.NET…
To set the ExecutionPolicy using Powershell, run Powershell as Administrator. Type in Set-ExecutionPolicy followed by the ExecutionPolicy you wish to use. Restricted: Restricted is the default execution policy. PowerShell scripts…
To Set / Clear and Toggle a single bit in C++ see the methods below. Setting a bit Use the bitwise OR operator (|) to set a bit. Clearing a…
To set a Property Value by Name in C# and VB.NET you can use the following snippet. Sample C# Sample VB.NET
To read a embedded resource image in C# and VB.NET you can use the following snippet. Sample C# Sample VB.NET
To set the start location of FolderBrowserDialog in C# and VB.NET you can use the following snippet. To do so, simply set the SelectedPath Value to the path you want.…
To format bytes to human readable Size in Python you can use the following snippet. Sample Python
To set the server time in PHP you can use the following snippet. It required PHP 5.1.0 or higher. Sample PHP for more informations see: date_default_timezone_set and for a list…
To format bytes to human readable Size in Javascript you can use the following snippet. Sample Javascript