In my VB.NET windows application code I created my own AppConfig class that holds the connection string to a SQL server database. I am about to move this program into production and was wondering if there is an easy way to have the program switch between a development connection string and a production connection string based on whether I am running the program through VS or running the deployed program. I was looking at preprocessing directives but couldnt figure it out. Thanks for the help.