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
Public function in vb.net
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Kirtan PatelRank #292 · 8.6K reputationPosted Feb 23, 2010, 1:45 AM EST
Shared Function Add(ByVal a As Integer, ByVal b As Integer) As IntegerReturn a + b
End Function
Hirendra SisodiyaRank #258 · 9.8K reputationPosted Feb 23, 2010, 2:02 AM EST
paul daniel189 reputationPosted Feb 23, 2010, 3:46 AM EST
http://www.techtoolblog.com/archives/webconfig-connection-string-settings-in-net-20