Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8098187
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T22:00:11+00:00 2026-06-05T22:00:11+00:00

I am attempting to use a new settings file in my Windows Forms Application

  • 0

I am attempting to use a new settings file in my Windows Forms Application with C#.

After I deleted the old Settings File (Settings1.settings) and created the new one(Settings.settings).

As I began editing the code that uses the settings file I realized that the new settings file is not being recognized. Example:

enter image description here

There is a custom Settings Class being used from a namespace created by our company that is causing some of the conflict. How do I point the code at the right settings file?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T22:00:14+00:00Added an answer on June 5, 2026 at 10:00 pm

    In trying to duplicate what you have done I noticed the Namespace of the Settings.Designer.cs file went from this( I am using a console app to test).

    namespace ConsoleApplication1.Properties {
    
    
        [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
        internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
    
            private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
    
            public static Settings Default {
                get {
                    return defaultInstance;
                }
            }
    
            [global::System.Configuration.UserScopedSettingAttribute()]
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [global::System.Configuration.DefaultSettingValueAttribute("False")]
            public bool Test {
                get {
                    return ((bool)(this["Test"]));
                }
                set {
                    this["Test"] = value;
                }
            }
        }
    }
    

    to

    namespace ConsoleApplication1 {
    
    
        [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
        internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
    
            private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
    
            public static Settings Default {
                get {
                    return defaultInstance;
                }
            }
    
            [global::System.Configuration.UserScopedSettingAttribute()]
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [global::System.Configuration.DefaultSettingValueAttribute("False")]
            public bool Temp {
                get {
                    return ((bool)(this["Temp"]));
                }
                set {
                    this["Temp"] = value;
                }
            }
        }
    }
    

    If you will notice the Namespace went from ConsoleApplication1.Properties to ConsoleApplication1 so if you add .Properties to the Namespace of the new Settings file it should take care of your problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm attempting to use the new standard way of loading seed data in Rails
I am new to jQuery and attempting to use the dropdownchecklist control I am
I'm new to F# basically i'm attempting to use the FileHelpers library to import
I am attempting to transition an existing program to use the new time facilities
I am new to g++ and lapack, and attempting to use them. I encountered
I'm new to NHibernate and am attempting to use it to connect to DB2.
When using the jQuery UI (1.8.6) datepicker plugin and attempting to use one specific
I'm attempting to use jQuery's autocomplete feature, and after reading several posts I still
I'm attempting to use the new partial page caching available in ASP.NET MVC 3.
I'm attempting to use OpenGL with Qt (relatively new to both of them), but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.