Search code examples
c#winformssqlconnectionwindows

Where to define connection string as global in C# windows app(Like WebConfig in Web App)?


As my question I want to know where can i define a global connection string In Windows Forms Applications in C#? Just like Web-config in Web Applications. AND how to use/access that connection in my code behinds? please respect my apology for this simple question.I'm new to windows form apps Thank you very much


Solution

  • you will place your connection string inside app.config file.

    How to get connection string from app.config