vijay antony

vijay antony

  • NA
  • 48
  • 0

public function in vb.net

Feb 23 2010 6:30 AM
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)