3
Reply

public function in vb.net

Ask a question
vijay antony

vijay antony

14y
3.5k
1
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


Answers (3)