tags:

views:

29

answers:

2

Hello EveryOne

Is there equivalent for getevn/setenv functions in VB.NET. I have looked at system.Environment.GetEnvironmentVariable but it gives the system environment variables like USERNAME, COMPUTERNAME etc. I need to get the variables that are stored in config.user file. Is there any way to do that in VB>NET. Please help me out. Thanks.

A: 

If you want to Save Settings or operate on settings, try Settings Class.

Accessed using My.Settings.Properties.Default. - your settings defined in settings file

Amit Ranjan
A: 

You can access configuration data from the .config files using the ConfigurationManager class.

Oded