Import the System.Configuration namespace.Dim myVar as String = ConfigurationSettings.AppSettings("myKey")