How to set the start location of FolderBrowserDialog in C# and 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.

Sample C#

MyFolderBrowserDialog.SelectedPath = @"C:\Test";

Sample VB.NET

MyFolderBrowserDialog.SelectedPath = "C:\Test"

Please rate this snippet

How to check if the browser supports Html5 localStorage

To check if the browser supports Html5 localStorage you can use the following code snippet.

Sample Javascript

function IsSupportingHtml5Storage() {
    try {
        return 'localStorage' in window && window['localStorage'] !== null;
    } catch (ex) {
        return false;
    }
}

for more informations see W3Schools: HTML5 Web Storage

Please rate this snippet