Skip to content

Access application settings from code

red man

Asked Feb 4, 2007, 5:34 AM EST1 answer
Share
LinkedInX
Hi , i stored my connection in application settings i.e. project > properties> settings tab. Now i need to access the connection string from code. How do i do it ?? any help is appreciated, yojimbo

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    I think you want to do something like:

    string conn=Properties.Settings.Default.ConnStr;

    Where ConnStr is the name that you gave it in Settings Editor.

    Bobby
    0