the following is the code for the custom SettingsProvider from Geoff and mine’s TechEd 2006 presentation: Option Strict On Option Explicit On Imports System Imports System.Configuration ”’ <summary> ”’ simple example of a SetitngsProvider that saves each individual setting in it’s own file ”’ </summary> ”’ <remarks>to use, add a setitng to My.Settigns designer, open the properties window ”’ and set the provider to FileByFileSettingsProvider if in the same project, otherwise the full name. ”’ </remarks> Public Class FileByFileSettingsProvider Inherits SettingsProvider #Region “constructor and initialize” Public Sub New() MyBase.new() End Sub Public Overrides Sub Initialize(ByVal name As String, ByVal config As System.Collections.Specialized.NameValueCollection) If name Is Nothing Then name = My.Application.Info.ProductName m_appName = name MyBase.Initialize(m_appName, config) End Sub Private m_appName As String Public Overrides Property ApplicationName() As String Get Return m_appName End Get Set(ByVal value As String) m_appName = value End Set End Property […]
Click here to read more »