hi guys! help please...how can i bind the application settings to a variable..currently i have the code below which bind the value to a property of the control in that case the .Text Property of the TxtSettingsStartLocation Textbox.
Thanks in advance!Code:private Application_Settings AppSettings = new Application_Settings(); Binding Binding_Start_Location = new Binding("Text", AppSettings, "Start_Location", true, DataSourceUpdateMode.OnPropertyChanged); txtSettingsStartLocation.DataBindings.Add(Binding_Start_Location); sealed class Application_Settings : ApplicationSettingsBase { [UserScopedSetting()] public string Start_Location { get { return (string)this["Start_Location"]; } set { this["Start_Location"] = value; } } }




Reply With Quote