user3165438
user3165438

Reputation: 2661

Change namespace to Setting file

Is it possible to create a new folder in the project browser and move there the Setting file
(The one which was created under the main namespace folder by default) ?

Do I have to change the configuration file itself (like to specify the new folder name)?

Upvotes: 1

Views: 1128

Answers (1)

user3165438
user3165438

Reputation: 2661

Yes, it is possible :

  1. From Properties file move the Settings (with its Settings.designer.cs) to the new folder.

  2. Open the Settings.designer.cs file and change the namespace from ApplicationName.Properties to NewFileName.

  3. In the app.config file, change the <userSettings> <ApplicationName.Properties.Settings> places

    to <userSettings> <NewFileName.Settings>

  4. Along the program use NewFileName.Settings instead of Properties.Settings.

Upvotes: 2

Related Questions