Just moving form C# 1.1 to C# 2 trying to use an onfig file to store information
easy in .Net 1.1.
now this works in .Net 2 but is telling me that it is obsolete and should be usingCode:private void button1_Click(object sender, EventArgs e) { string setting; setting = System.Configuration.ConfigurationSettings.AppSettings.Get("test"); MessageBox.Show(setting); }
found some doctmentation on the ConfigurationManager but the class does not seem to be in my intellie scenece so really am stumpedWarning 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
ANy help would be great!




Reply With Quote