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. replacement of INI Files

replacement of INI Files

Scheduled Pinned Locked Moved Visual Basic
questionxml
6 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.
  • H Offline
    H Offline
    HemaRawat
    wrote on last edited by
    #1

    Hi all, I want to know that what is replacement of the INI files Actually i have to save some settings like open connection, forms colorings etc in the settings files So what type of file i have to use in Vb2005 XML / Config/Settings what r they???? Thanks in advance Regards Hema Chaudhry

    C 1 Reply Last reply
    0
    • H HemaRawat

      Hi all, I want to know that what is replacement of the INI files Actually i have to save some settings like open connection, forms colorings etc in the settings files So what type of file i have to use in Vb2005 XML / Config/Settings what r they???? Thanks in advance Regards Hema Chaudhry

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      the app.config file is just an XML file. You can actually do some fairly funky stuff with .NET 2.0 with regard to config files. The basics are that you have:

      <appSettings>
      <add key="mySetting" value="someValue" />
      </appSettings>

      Which you can read with the ConfigurationSettings class in the System.Configuration namespace ConfigurationSettings.AppSettings["mySetting"]; ColinMackay.net "Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius "If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell -- modified at 8:56 Wednesday 18th January, 2006

      H 1 Reply Last reply
      0
      • C Colin Angus Mackay

        the app.config file is just an XML file. You can actually do some fairly funky stuff with .NET 2.0 with regard to config files. The basics are that you have:

        <appSettings>
        <add key="mySetting" value="someValue" />
        </appSettings>

        Which you can read with the ConfigurationSettings class in the System.Configuration namespace ConfigurationSettings.AppSettings["mySetting"]; ColinMackay.net "Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius "If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell -- modified at 8:56 Wednesday 18th January, 2006

        H Offline
        H Offline
        HemaRawat
        wrote on last edited by
        #3

        Thanks for the prompt & precise answer. I have to perform both read as well as write operation also AS i have to write some settings as well as read some settings Then what is the baest approach To create a simple XML file & perform Reda write operation Or something else is the better approach Thanks for this kind support Hema Chaudhry

        C 1 Reply Last reply
        0
        • H HemaRawat

          Thanks for the prompt & precise answer. I have to perform both read as well as write operation also AS i have to write some settings as well as read some settings Then what is the baest approach To create a simple XML file & perform Reda write operation Or something else is the better approach Thanks for this kind support Hema Chaudhry

          C Offline
          C Offline
          Colin Angus Mackay
          wrote on last edited by
          #4

          The System.Configuration[^] has a number of classes that help you do this. As you are using .NET 2.0, if you look at the documentation for ConfigurationManager[^] it will show some example code that that will help (also, the examples for the related classes) ColinMackay.net "Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius "If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell

          H 1 Reply Last reply
          0
          • C Colin Angus Mackay

            The System.Configuration[^] has a number of classes that help you do this. As you are using .NET 2.0, if you look at the documentation for ConfigurationManager[^] it will show some example code that that will help (also, the examples for the related classes) ColinMackay.net "Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius "If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell

            H Offline
            H Offline
            HemaRawat
            wrote on last edited by
            #5

            Thanks for this Useful direction I ahve seen the Configuration Manger Class I think It will fit to my requirement Thanks a lot To give this Link I more thing I want to ask That is there is any thing new feature In 2.0 or Visual Studio 2005 To have the Multi COlumn Combo Box in the DatagridView Or if there is any other way to do that If make a custome control then how to add etc. So plz give me the direction for this also AS i m stuck with this problem since last 3 months Thanks a lot again. Thanks & Regards Hema Chaudhry

            C 1 Reply Last reply
            0
            • H HemaRawat

              Thanks for this Useful direction I ahve seen the Configuration Manger Class I think It will fit to my requirement Thanks a lot To give this Link I more thing I want to ask That is there is any thing new feature In 2.0 or Visual Studio 2005 To have the Multi COlumn Combo Box in the DatagridView Or if there is any other way to do that If make a custome control then how to add etc. So plz give me the direction for this also AS i m stuck with this problem since last 3 months Thanks a lot again. Thanks & Regards Hema Chaudhry

              C Offline
              C Offline
              Colin Angus Mackay
              wrote on last edited by
              #6

              HemaRawat wrote:

              I more thing I want to ask That is there is any thing new feature In 2.0 or Visual Studio 2005 To have the Multi COlumn Combo Box in the DatagridView Or if there is any other way to do that

              Don't know. Also, this is a new question on a different topic - you should start a new thread. ColinMackay.net "Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius "If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell

              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