Accessing Settings in c# erroring out

Hi,

I have strongly typed settings in my project and I can access all of those in 1 form in my application but not in another. I don't see any difference between forms but exactly the same piece of below returns setting in 1 form but not in another. Error is below for the form which can not access settings.

Any ideas Might be something obvious but it escapes me.

Properties.Settings.Default.API_UserName

'System.Windows.Forms.PropertyStore' does not contain a definition for 'Settings'



Answer this question

Accessing Settings in c# erroring out

  • Accessing Settings in c# erroring out