Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to implement a user configuration for an Application by C#? [modified]

How to implement a user configuration for an Application by C#? [modified]

Scheduled Pinned Locked Moved C#
csharpdesigntutorialquestionworkspace
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    YouMiss
    wrote on last edited by
    #1

    As I know, a real application has the ability to let users to change certain settings and alter the way the application runs, which is regarded as user configuration. Some settings will take the effect immediately after you click 'OK' while the program is running, some may request you to restart the program I am a complete novice for programming, though I have read so many text books about C#. All I know now is that like how to create classes, structures, define functions, callbacks, delegates, interfaces, declare variables and so forth. I totally have no idea about how to design a real application from scratch although I was thrown in this situation that I have to. I have partially completed the flowchart but I still don't understand how to persist and implement user configurations to make the application interactive? Thanks for anyone could give me some hints. -- modified at 23:13 Tuesday 25th September, 2007

    Someone was born greatness; Someone achieved greatness; Someone have the greatness thrust upon him;

    D J 2 Replies Last reply
    0
    • Y YouMiss

      As I know, a real application has the ability to let users to change certain settings and alter the way the application runs, which is regarded as user configuration. Some settings will take the effect immediately after you click 'OK' while the program is running, some may request you to restart the program I am a complete novice for programming, though I have read so many text books about C#. All I know now is that like how to create classes, structures, define functions, callbacks, delegates, interfaces, declare variables and so forth. I totally have no idea about how to design a real application from scratch although I was thrown in this situation that I have to. I have partially completed the flowchart but I still don't understand how to persist and implement user configurations to make the application interactive? Thanks for anyone could give me some hints. -- modified at 23:13 Tuesday 25th September, 2007

      Someone was born greatness; Someone achieved greatness; Someone have the greatness thrust upon him;

      D Offline
      D Offline
      dengboo
      wrote on last edited by
      #2

      As you mentioned, you're a newbie in C#, so I think the most important thing to you is not the application interative but how to create a real application. You can create some applications without thinking too much more, just let them run with simple features, such as IO, Registry, Graphics, etc. These can help you with further programming.

      YouMiss wrote:

      but I still don't understand that how to persist and implement user configurations to make the application interactive?

      Since then, you shoule know this way: you can use XML document to save the user configuration and let the application "read" the user's settings and "implement" them. Use XML to store and read user configruation. That's "what you do", not "how to do".

      --------------------------------- Believe what you saw!

      Y 1 Reply Last reply
      0
      • D dengboo

        As you mentioned, you're a newbie in C#, so I think the most important thing to you is not the application interative but how to create a real application. You can create some applications without thinking too much more, just let them run with simple features, such as IO, Registry, Graphics, etc. These can help you with further programming.

        YouMiss wrote:

        but I still don't understand that how to persist and implement user configurations to make the application interactive?

        Since then, you shoule know this way: you can use XML document to save the user configuration and let the application "read" the user's settings and "implement" them. Use XML to store and read user configruation. That's "what you do", not "how to do".

        --------------------------------- Believe what you saw!

        Y Offline
        Y Offline
        YouMiss
        wrote on last edited by
        #3

        Dunbar C wrote:

        You can create some applications without thinking too much more, just let them run with simple features, such as IO, Registry, Graphics, etc. These can help you with further programming.

        Thanks very much for your suggestion. But, if I could choose to start from all the fundamentals I would REALLY not put myself into this situation:).

        Dunbar C wrote:

        Since then, you shoule know this way: you can use XML document to save the user configuration and let the application "read" the user's settings and "implement" them. Use XML to store and read user configruation. That's "what you do", not "how to do".

        I did read about that the C# (or maybe the .NET framework) supports the *.resx file format which is to persist all the external resources used for an application. However, upon what I read I haven't figured out how to modify a resource file at real-time. And yes, the resource file is making use of the XML file. Is it what you were just trying to say?

        Someone was born greatness; Someone achieved greatness; Someone let the greatness thrust upon him;

        D 1 Reply Last reply
        0
        • Y YouMiss

          Dunbar C wrote:

          You can create some applications without thinking too much more, just let them run with simple features, such as IO, Registry, Graphics, etc. These can help you with further programming.

          Thanks very much for your suggestion. But, if I could choose to start from all the fundamentals I would REALLY not put myself into this situation:).

          Dunbar C wrote:

          Since then, you shoule know this way: you can use XML document to save the user configuration and let the application "read" the user's settings and "implement" them. Use XML to store and read user configruation. That's "what you do", not "how to do".

          I did read about that the C# (or maybe the .NET framework) supports the *.resx file format which is to persist all the external resources used for an application. However, upon what I read I haven't figured out how to modify a resource file at real-time. And yes, the resource file is making use of the XML file. Is it what you were just trying to say?

          Someone was born greatness; Someone achieved greatness; Someone let the greatness thrust upon him;

          D Offline
          D Offline
          dengboo
          wrote on last edited by
          #4

          YouMiss wrote:

          I did read about that the C# (or maybe the .NET framework) supports the *.resx file format which is to persist all the external resources used for an application. However, upon what I read I haven't figured out how to modify a resource file at real-time. And yes, the resource file is making use of the XML file. Is it what you were just trying to say?

          .resx file is mostly like a file stores base 64 string of images or the extra infos of design mode of a form, and as default it's build as "Embedded Resource" in VS2005 (see the properties of one form, there is a "Build Action" node at the properties window). If you want to read and write the use configuration, a good way is to use .xml file or .config file, the select the "Build Action" as "Content", and the property "Copy to Output Direactory" as "Copy if newer".

          --------------------------------- Believe what you saw!

          1 Reply Last reply
          0
          • Y YouMiss

            As I know, a real application has the ability to let users to change certain settings and alter the way the application runs, which is regarded as user configuration. Some settings will take the effect immediately after you click 'OK' while the program is running, some may request you to restart the program I am a complete novice for programming, though I have read so many text books about C#. All I know now is that like how to create classes, structures, define functions, callbacks, delegates, interfaces, declare variables and so forth. I totally have no idea about how to design a real application from scratch although I was thrown in this situation that I have to. I have partially completed the flowchart but I still don't understand how to persist and implement user configurations to make the application interactive? Thanks for anyone could give me some hints. -- modified at 23:13 Tuesday 25th September, 2007

            Someone was born greatness; Someone achieved greatness; Someone have the greatness thrust upon him;

            J Offline
            J Offline
            J4amieC
            wrote on last edited by
            #5

            Take a look at the System.Configuration namespece (mostly within the System.Configuration.dll assembly) as this contains everything you need to read and write configuration settings for an application.

            --- How to get answers to your questions[^]

            Y 1 Reply Last reply
            0
            • J J4amieC

              Take a look at the System.Configuration namespece (mostly within the System.Configuration.dll assembly) as this contains everything you need to read and write configuration settings for an application.

              --- How to get answers to your questions[^]

              Y Offline
              Y Offline
              YouMiss
              wrote on last edited by
              #6

              Thanks for all...:-D

              Someone was born greatness; Someone achieved greatness; Someone let the greatness thrust upon him;

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups