application-settings

Can you change a setting in the Foo.settings file at run-time?

I have the following code that determines if it's the first time the user opens the app. If it is, a file dialog shows, and then it's supposed to change the setting to false, so it doesn't happen after that one time. public void VerifyIfFirstTimeRun() { if (Properties.Settings.Default.FirstTimeUse == true) { ...

Which design patterns can be applied to the configuration settings problem?

In large and complex software products managing configurable settings becomes a major pain. Two approaches I've seen to the problem are: have each component in the system load its own configuration from config files or registry settings. have a settings loader class that loads all the configurable system settings and have each compon...

Settings.settings - How do I change from one environment to another?

I have a Web App Project (compiled DLL) along with 3 DLL projects. In my DLL projects I am using the Properties/Setting.settings to extract mutable settings from the DLL. However, when I publish from environment to the next I have not figured how to change the Settings.settings values for the new environment. It appears that the setti...

SDL.NET (VB/C#): What should the startup object and application type be?

I eventually couldn't get any further with my program due to the various shortcomings of VB.NET (bad audio support, no reading events in the middle of execution, very weak keyboard input, etc). So I tried SDL.NET 6.1. Despite its terrible documentation, I was able to fix my code to use it and I love it! But there's a problem. I don't...

How to access an app through the device settings?

Hi all , I have deployed an application in my device. Now i want that the app to be accessible through the device settings. Like changing some of the settings of the app that should show up in the device settings for the app. Plz suggest me a way. Thank You All. ...

Blackberry - application settings save/load

Hi! I know two ways to save/load application settings: use PersistentStore use filesystem (store, since SDCard is optional) I'd like to know what are you're practicies of working with application settings? Using PersistentStore to save/load application settings The persistent store provides a means for objects to persist acros...

How to add a label in a settings screen

As a picture says more than a thousand words: Any help on how to add descriptive labels to a settings pane would be highly appreciated! I should point out that I want to do this to be in the iPhone-App settings that are in the Settings menu of the iPhone (outside the App). Example label: iPhone -> Settings -> Safari -> Fraud Warning...

App.Config vs Custom XML file

Not sure if this is a duplicate or not, im sure if it is it will be closed anyway! I hear a lot of folk mentioning things like "you shouldn't clog your app.config file with custom settings"....I was under the illusion that this was what the purpose of the file was for! So, is it just indeed a preference thing, or are there any real ben...

How do I alter a .NET application/user settings on installation?

In a Windows Service project, with a Project Installer I tried the following: [RunInstaller(true)] public partial class ProjectInstaller : Installer { public ProjectInstaller() { InitializeComponent(); } protected override void OnBeforeInstall(System.Collections.IDictionary savedState) { base.OnBefor...

How do you upgrade Settings.settings when the stored data type changes?

I have an application that stores a collection of objects in the user settings, and is deployed via ClickOnce. The next version of the applications has a modified type for the objects stored. For example, the previous version's type was: public class Person { public string Name { get; set; } public int Age { get; set; } } And ...

VS ApplicationSetting types and testing global settings

It looks to me like choosing Browse.. for the type of a setting should offer a list of available types in the assembly to select from. My designer (VS 2008 under vista) seems to hang a bit before doing nothing. Am I correct in how this feature should work? Any ideas on why mine isn't? Is there a way to manipulate global settings for t...

iPhone settings bundle

I want to allow the user to enter a valid date using the iPhone’s settings application. I have experimented with many of the PreferenceSpecifiers data node types including date. I have two issues: When I specify date as the type, my app within the settings app crashes. Working examples would be greatly appreciated. Since this approac...

Shared Windows-Application settings file (*.settings)?

Hi I develop a desktop application that will be installed in few stations in the local network, I want the *.settings to fetch the settings from the DB when the program loads, the save it on SaveChanges. I don't care in which way to do it (I thought SQL would work best as this is the only common thing between the users, if you don't ha...

.net desktop app - how do store/change application settings or connection strings?

I need to give the user the ability to change application settings, in this case the location for the application database. I noticed that Application Settings are read only at run time, but this needs to be application-wide, not user-specific. How do I persist an application-wide connection string in windows.forms that is changeable a...

Unable to access ConfigurationManager.AppSettings in a Windows Forms Application

How can I access ConfigurationManager.AppSettings in my Windows Forms Application? The error message reads: The name 'ConfigurationManager' does not exist in the current context. ...

Applicaion Settings saving problem.

I have two assemblies in my application. MyApplication.BO and MyApplication.GUI. I have configured property-settings for my BO assembly. Now when I am trying to compile the following code: public class MyApplicationInfo { private string _nameOfTheUser; public string FullNameOfTheUser { get { return _nameOfTheUser; } set { _name...

How to enable-disable Notifications in settings app using sdk?

Hello all, I want to use push notification in my app so first time it launches it will automatically ask for notification.So i want to enable-disable push notification settings for my app programmatically.Note-I do not want to unregistered my app just disable Alert,badge,Sound for my app in settings app. ...

Change namespace of a deployed clickonce application

I made a bit of a namespace spelling mistake and I wish to correct it. My application currently uses Application.Settings to store a bulk of the user's information. If I refactor my namespace to be spelled correctly, will the application settings file essentially get wiped because it can't find the new namespace in it? ...

C# multiple settings files with same interface

I'm trying to create a program with two (or more) discrete sets of settings, that both conform to the same interface. Particularly I'd like to do something like the following, using designer generated settings: IMySettings settings = Properties.A; Console.WriteLine(settings.Greeting); settings = Properties.B; Console.WriteLine(settings...

how to create a custom settings view / make cell label editable

Hi everyone, I need to create a custom settings view used within the app. The app is a mockup so it actually does have one already, it uses a UITableViewCellStyleValue1, but nothing is editable. So essentially what I would like to have is the same thing but with editable detailTextLabel (the label on the right hand side), what's the bes...