Here I will use a module for specifying connection string,In order to Add a module repeat same steps which you have adopted while adding a login form but now you have to select “module” instead of “login form”, see the below screen shot:
After clicking the Add button a file having .vb extension will appear in your solution explorer window as shown in the following picture:
Now double the connection.vb file and write following code:
CodeReflex is your foremost source of design practices, coding techniques and quality testing. Over here, you will get the solution of every known issue relevant to programming in mostly all of the top languages. Not only this but you can also download the code snippets by experts and freely incorporate into your project.