Results 1 to 2 of 2

Thread: Congfig files .Net2 [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Fanatic Member Bombdrop's Avatar
    Join Date
    Apr 2001
    Location
    St Helens, England, UK
    Posts
    667

    Resolved Congfig files .Net2 [RESOLVED]

    Just moving form C# 1.1 to C# 2 trying to use an onfig file to store information
    easy in .Net 1.1.

    Code:
            private void button1_Click(object sender, EventArgs e)
            {
                string setting;
                setting = System.Configuration.ConfigurationSettings.AppSettings.Get("test");   
                MessageBox.Show(setting);
            }
    now this works in .Net 2 but is telling me that it is obsolete and should be using

    Warning 1 'System.Configuration.ConfigurationSettings.AppSettings' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings' c:\Phil Coffe\Sirius Reports\ConfigTest\ConfigTest\Form1.cs 22 23 ConfigTest
    found some doctmentation on the ConfigurationManager but the class does not seem to be in my intellie scenece so really am stumped

    ANy help would be great!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width