Configuration File code error

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

http://msdn2.microsoft.com/en-us/library/system.configuration.configuration

This site contains sample code that does not compile for me. The line of
code is:

' Get the current configuration file.
Dim config As _
System.Configuration.Configuration = _
ConfigurationManager.OpenExeConfiguration( _
ConfigurationUserLevel.None)

When I place this in my VB.Form code, I get the following error:

System.Configuration.Configuration is not defined. Surely I am missing
something simple.
 
genojoe said:
http://msdn2.microsoft.com/en-us/library/system.configuration.configuration

This site contains sample code that does not compile for me. The line of
code is:

' Get the current configuration file.
Dim config As _
System.Configuration.Configuration = _
ConfigurationManager.OpenExeConfiguration( _
ConfigurationUserLevel.None)

When I place this in my VB.Form code, I get the following error:

System.Configuration.Configuration is not defined. Surely I am missing
something simple.

IT may be something simple but I've not figured it out either...any
luck?
 
Back
Top