VB2005 version: ConfigurationSettings.AppSettings

  • Thread starter Thread starter Dean Slindee
  • Start date Start date
D

Dean Slindee

What is the VS2005 version of ConfigurationSettings.AppSettings:

Dim strTemp As String

strTemp = ConfigurationSettings.AppSettings.Get(Application.ProductName &
"/" & strKeyID)
 
Dean,
As Herfried suggests, the "VB" conversion is My.Settings.

The "Framework" conversion is
System.Configuration.ConfigurationManager.AppSettings.

NOTE: You need to add a reference to the System.Configuration assembly to
use System.Configuration.ConfigurationManager.



--
Hope this helps
Jay [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net


| What is the VS2005 version of ConfigurationSettings.AppSettings:
|
| Dim strTemp As String
|
| strTemp = ConfigurationSettings.AppSettings.Get(Application.ProductName &
| "/" & strKeyID)
|
|
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top