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. Visual Basic
  4. Read/write to ini-file

Read/write to ini-file

Scheduled Pinned Locked Moved Visual Basic
questionvisual-studioworkspace
4 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.
  • Z Offline
    Z Offline
    zwaailicht
    wrote on last edited by
    #1

    Hi All !! I am new on this forum. Just made my account today. Website looks great! I have been developping in Wedev and Clarion for many years. This year I have made the switch to VS 2005. Already I have looked shortly at VS2008. I must admit, I regret that I have not started with VS earlier....... In Windev we have always been working with ini-files. Would like to put in a ini-file several variables witch the user may change. Anyone a suggestion or a quick start for using ini-files? Second question .... if I may? I want to save user-setting in a configuration-file. Cann anyone give me also a quickstart? Thnxs Hans -- modified at 14:52 Thursday 29th November, 2007

    N V 2 Replies Last reply
    0
    • Z zwaailicht

      Hi All !! I am new on this forum. Just made my account today. Website looks great! I have been developping in Wedev and Clarion for many years. This year I have made the switch to VS 2005. Already I have looked shortly at VS2008. I must admit, I regret that I have not started with VS earlier....... In Windev we have always been working with ini-files. Would like to put in a ini-file several variables witch the user may change. Anyone a suggestion or a quick start for using ini-files? Second question .... if I may? I want to save user-setting in a configuration-file. Cann anyone give me also a quickstart? Thnxs Hans -- modified at 14:52 Thursday 29th November, 2007

      N Offline
      N Offline
      Naji El Kotob
      wrote on last edited by
      #2

      Hi, I think you must try the settings file, it's a new technique simple and beautiful. I'll show you a way to use it, go to project > new item > settings file (name it e.g. testsettings.settings) > add a new record (use the user scope). in your form: 'Read Dim s As New TestSettings MsgBox(s.FieldName) 'Update s.FieldName = NewValue s.Save() hope this helps NajiCo http://www.InsideVB.NET[^] It's nice 2b important, but it's more important 2b nice... http://www.facebook.com/group.php?gid=5932660937[^]

      Z 1 Reply Last reply
      0
      • N Naji El Kotob

        Hi, I think you must try the settings file, it's a new technique simple and beautiful. I'll show you a way to use it, go to project > new item > settings file (name it e.g. testsettings.settings) > add a new record (use the user scope). in your form: 'Read Dim s As New TestSettings MsgBox(s.FieldName) 'Update s.FieldName = NewValue s.Save() hope this helps NajiCo http://www.InsideVB.NET[^] It's nice 2b important, but it's more important 2b nice... http://www.facebook.com/group.php?gid=5932660937[^]

        Z Offline
        Z Offline
        zwaailicht
        wrote on last edited by
        #3

        Hi Naji, Thnxs for youw wonderfull tip. It worked right away!!! :-D I will forget about the ini-files and use the settings-option provided bij VB.net. Greetz Hans

        1 Reply Last reply
        0
        • Z zwaailicht

          Hi All !! I am new on this forum. Just made my account today. Website looks great! I have been developping in Wedev and Clarion for many years. This year I have made the switch to VS 2005. Already I have looked shortly at VS2008. I must admit, I regret that I have not started with VS earlier....... In Windev we have always been working with ini-files. Would like to put in a ini-file several variables witch the user may change. Anyone a suggestion or a quick start for using ini-files? Second question .... if I may? I want to save user-setting in a configuration-file. Cann anyone give me also a quickstart? Thnxs Hans -- modified at 14:52 Thursday 29th November, 2007

          V Offline
          V Offline
          Vasudevan Deepak Kumar
          wrote on last edited by
          #4

          Check out this: http://www.codeproject.com/csharp/cs_ini.asp[^]

          Vasudevan Deepak Kumar Personal Homepage
          Tech Gossips
          A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

          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