I have two form which uses the same connection string such as,
Dim connStr as String = "Server = localhost; Database = tester; Uid = root; Pwd = 123"
Public Property connString as String = "bla..bla"
Form2.connString = connStr
The best way to pass or call a variable from different forms is to create a module.
Open Visual Studio, click PROJECT from the menu bar > Add Module... > Select Module > OK
From there, you can declare your GLOBAL VARIABLES.
Module Module1 Public connStr as String = "Server = localhost; Database = tester; Uid = root; Pwd = 123" End Module
The variable "connStr" can now be called from different forms.
From your Form1 and Form2 you can just call this GLOBAL VARIABLE as if they are your local variables.