Multiple app settings

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John

    Multiple app settings

    Hi

    My app has settings that are stored in the app configuration file. Is there
    a way to select a different set of app settings for different pcs, either
    during setup or when app is run for the first time?

    Thanks

    Regards


  • Gillard

    #2
    Re: Multiple app settings

    use a xml file


    "John" <info@nospam.in fovis.co.ukwrot e in message
    news:eUDyopO$IH A.5192@TK2MSFTN GP04.phx.gbl...
    Hi
    >
    My app has settings that are stored in the app configuration file. Is
    there a way to select a different set of app settings for different pcs,
    either during setup or when app is run for the first time?
    >
    Thanks
    >
    Regards
    >
    >

    Comment

    • Andrej Tozon

      #3
      Re: Multiple app settings

      John,

      there are two kinds of app settings, and two different locations where
      those settings get stored. First there are application settings, which
      are, by default, read only and stored in the config file where
      application is installed. Then there are user-scoped settings, which
      gets saved in current user's document folder - those can be changed by
      the application in runtime. If you can set up your default settings
      when application is first run, you can use user-scoped settings to
      save them.

      You can also create a custom settings provider to store those settings
      in any source you need, for example, one common scenario is that
      user's settings are stored in a database so users can access them from
      any pc where that application is run.

      To better understand your scenario, could you please explain what kind
      of settings would you like to be applied "per pc" instead "per user"?

      Andrej



      On 13 avg., 04:15, "John" <i...@nospam.in fovis.co.ukwrot e:
      Hi
      >
      My app has settings that are stored in the app configuration file. Is there
      a way to select a different set of app settings for different pcs, either
      during setup or when app is run for the first time?
      >
      Thanks
      >
      Regards

      Comment

      • John

        #4
        Re: Multiple app settings

        Hi Andrej

        Many thanks.My app has separate settings for a laptop which can be
        disconnected at times and for desktop that will be always connected. Certain
        settings and paths are different based on the pc type the app is being
        installed on. If I can choose the set of settings during setup or at first
        run that would be great.

        Thanks

        Regards

        "Andrej Tozon" <andrej.tozon@g mail.comwrote in message
        news:ce3ea424-eaec-44ba-b6f3-610d4a3d4800@c6 5g2000hsa.googl egroups.com...
        John,
        >
        there are two kinds of app settings, and two different locations where
        those settings get stored. First there are application settings, which
        are, by default, read only and stored in the config file where
        application is installed. Then there are user-scoped settings, which
        gets saved in current user's document folder - those can be changed by
        the application in runtime. If you can set up your default settings
        when application is first run, you can use user-scoped settings to
        save them.
        >
        You can also create a custom settings provider to store those settings
        in any source you need, for example, one common scenario is that
        user's settings are stored in a database so users can access them from
        any pc where that application is run.
        >
        To better understand your scenario, could you please explain what kind
        of settings would you like to be applied "per pc" instead "per user"?
        >
        Andrej
        >
        >
        >
        On 13 avg., 04:15, "John" <i...@nospam.in fovis.co.ukwrot e:
        >Hi
        >>
        >My app has settings that are stored in the app configuration file. Is
        >there
        >a way to select a different set of app settings for different pcs, either
        >during setup or when app is run for the first time?
        >>
        >Thanks
        >>
        >Regards
        >

        Comment

        • Ralf

          #5
          Re: Multiple app settings

          Hi John,

          have a look at the System.Configur ation namespace and





          Regards
          Ralf

          "John" <info@nospam.in fovis.co.ukschr ieb im Newsbeitrag
          news:eUDyopO$IH A.5192@TK2MSFTN GP04.phx.gbl...
          Hi
          >
          My app has settings that are stored in the app configuration file. Is
          there a way to select a different set of app settings for different pcs,
          either during setup or when app is run for the first time?
          >
          Thanks
          >
          Regards
          >
          >

          Comment

          Working...