Skip Navigation LinksHome : Submit Snippet : Snippet Search : Snippet Detail
Snippet language icon

Author:
Andrew Jackson

Submitted:
05 Oct 2007

Language:
Visual Basic



Snippet Detail and Download

Snippet Type(s):  
Abstract (from author):
Auto Upgrade the settings from a previous version if it exists.


Description (from snippet):
Auto Upgrade the settings from a previous version if it exists.


Code Block:
1 'Check to see if this is the first time weve loaded the My.Settings for this version, if so then upgrade. 2 'TODO - Add a boolean user setting into your project named CallUpgrade and default it to True 3 If My.Settings.CallUpgrade = True Then 4 My.Settings.Upgrade() 5 My.Settings.CallUpgrade = False 6 End If 7
Download Now!
Download the snippet file by clicking the download button below. You may customize the snippet shortcut prior to downloading below.

Shortcut:

The download is in Visual Studio Community Content Installer (VSI) format.