You can use the Settings object, of the Configuration object, or design a solution yourself.
Try expanding the 'Properties' treeview item under your ptoject in the solution explorer, you'll see Settings.settings. You can add the connectionstring there and retrieve is in code. The other solution is to add a new file to your project (Application Configuration) and add the connectionstring in the ConnectionStrings section.
="1.0"
<configuration>
<connectionStrings>
<clear />
<add name="Name" connectionString="ConnectionStringX" />
</connectionStrings>
</configuration>
You must reference the System.Configuration library in order to call the
ConfigurationManager.ConnectionStrings["Name"].ConnectionString
which will return the connectionstring (in this case
ConnectionStringX)
Have Fun!
Eduard