I have multiple forms in my project. Sometimes I work on my laptop, sometimes I work on my desktop. The problem is, when transferring my project from laptop to desktop and vice versa, I must change my connection string on all forms in the project.
This is my connection string. I declared it globally.
Dim CN As New SqlConnection("Data Source=.\SQLEXPRESS;AttachDbFilename=D:\Documents and Settings\Adriane05\Desktop\ThesisDB.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True")
How can I change a single file without changing it on all forms?