title: How to store connection string in WinForms application?
body: <p>I have an application that consists of two forms. One form displays data returned from the database in fields and the other form opens a windows that allows the user to select which database to get the data from.</p>
  
  <p>Currently, the application doesn't store the user's choice of database. I want to store what the currently selected connection string is each time the user selects the database they want to use in form2.</p>
  
  <p>What is the best way to do this? If I made an instance of an object of a static class to store this information, would that persist the data for use on each form?</p>