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

  • Home
  • SEARCH
  • 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 876249
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T11:24:13+00:00 2026-05-15T11:24:13+00:00

In Visual Studio 10 (probably other versions too) it’s possible to define application settings

  • 0

In Visual Studio 10 (probably other versions too) it’s possible to define application settings using a designer view. These settings appear to simply be public variables stored.

Is there any way to use a custom enum as the type of an application setting?

I notice that you can browse the references for enums, but can’t seem to find a way to specify an enum contained within my code.

  • 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-05-15T11:24:13+00:00Added an answer on May 15, 2026 at 11:24 am

    The short version is:

    You can create your own ConfigurationSection and ConfigurationSectionGroup (reference System.Configuration, first). Then, you define a in your web.config to support your custom sections.

    If you want intellisense, you need to modify C:\Program Files (x86)\Microsoft Visual Studio 10.0\Xml\Schemas\DotNetConfig.xsd to include the detail of your new sections.

    For example, let’s say you want config that looks like this:

    <tomWright.Framework>
        <settings awesomeness="High" coolness="Medium"/> 
    </tomWright.Framework>
    

    You’d create a ConfigurationSectionGroup called something like TomWrightFrameworkConfigurationSectionGroup (which inherits from ConfigurationSectionGroup) and have it have one property called Settings, which points to a another class SettingsConfigurationSection (which inherits from ConfigurationSection). There are a few examples on MSDN on how to do this.

    It’s a bit of a learning curve, but when you want to make the leap from simple appSettings, to custom configuration – there’s really only one way to do it, and it’s not particuarly intuitive. If you have any questions though, let me know, I’ve done a fair with this before. Hope that helps… -Rob

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

Sidebar

Related Questions

In Visual Studio C++ version 9 (and probably other versions too), the following code:
I was under the impression Visual Studio 2008 (and probably other versions) already made
Visual Studio 2010, I was able to view xaml in designer. Now every xaml
I want to ask other developers about Visual Studio 11. I'm currently using VS2010
The following code (packaged in a 'Console Application' Visual Studio project): using System; using
Visual Studio 2010 C# code: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using
Visual studio 2005: I am moving from post build event to using the external
I'm building a basic web application in ASP.NET 4.0 with C# in Visual Studio
Is it safe to use the beta versions of Visual Studio? By safe I
Having written a CGI application in Visual Studio 2008 and debigged it locally, I

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.