Yes, that is correct. ConfigurationSettings lives in the System.Configuarion Namespace. To tell the compiler where it should look for the ConfigurationSettings class, you need to import the correct namespace.
Another way to do this, is to use the full name of the class. For example:
System.Configuration.ConfigurationSettings.AppSett ings.Get("MyDefaultDatabase")
This would get the value of the key MyDefaultDatabase from the config file.
Either the authors of the book forgot the Imports statement, or they have imported this namespace by default on the Property Pages of the
VB project.
HtH,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.