public function in vb.net
hi everybody
i need help for use the public function in vb.net
in my project i am using this sqlconnection in some places
Dim DBConn As New SqlConnection("Server=192.168.1.2;User ID=user;Password=pass;DataBase=TespaMechanical")
but i want declare it in one place and whenever i need i can use this connection
what shall i do
can anyone give a solution