In windows forms applications always add reference to System.Configuration in References then in the code page add using System.Configuration then use the connection strings like this:
string conStr = ConfigurationManager.ConnectionStrings["conStr"].ConnectionString;