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. store user-settings

store user-settings

Scheduled Pinned Locked Moved C#
csharpquestion
4 Posts 2 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.
  • P Offline
    P Offline
    Paul Horstink
    wrote on last edited by
    #1

    VB.NET 2.0 has the 'my.settings', is there a way to accomplish the same in C#?

    M 1 Reply Last reply
    0
    • P Paul Horstink

      VB.NET 2.0 has the 'my.settings', is there a way to accomplish the same in C#?

      M Offline
      M Offline
      Mark06
      wrote on last edited by
      #2

      If you look in the Solution Explorer under you project, you should see Properties and under that, Settings. In there you can customise your user and app settings. Then in the code, just refer to it such as: Properties.Settings...... If you open up Settings in Solution Explorer,there's a link in there also that gives you more information. Hope this helps Andy

      P 1 Reply Last reply
      0
      • M Mark06

        If you look in the Solution Explorer under you project, you should see Properties and under that, Settings. In there you can customise your user and app settings. Then in the code, just refer to it such as: Properties.Settings...... If you open up Settings in Solution Explorer,there's a link in there also that gives you more information. Hope this helps Andy

        P Offline
        P Offline
        Paul Horstink
        wrote on last edited by
        #3

        Andy, I got some settings defined in the Project-Properties-Setttings page. But the problem is to access them. All samples in the documentation (incluing the link on that page) only refer to VB.NET's My.Settings, not C#. I tried entering Properties.Settings in the code editor, but then Intellisense doesn't pop-up anything... Could you elaborate, assuming I have defined a string-setting named 'username' in the settings-page? Thanks, Paul

        P 1 Reply Last reply
        0
        • P Paul Horstink

          Andy, I got some settings defined in the Project-Properties-Setttings page. But the problem is to access them. All samples in the documentation (incluing the link on that page) only refer to VB.NET's My.Settings, not C#. I tried entering Properties.Settings in the code editor, but then Intellisense doesn't pop-up anything... Could you elaborate, assuming I have defined a string-setting named 'username' in the settings-page? Thanks, Paul

          P Offline
          P Offline
          Paul Horstink
          wrote on last edited by
          #4

          Okay, okay, so I didn't look good enough :-O I found my setting under Properties.Setting.Default.xxxx Thanks for pointing me in the right direction!!! Paul

          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