Page 1 of 1

Make this .DLL file in VB.NET

Posted: Tue Sep 07, 2010 12:05 am
by Scottie1972
Can anyone make this a stand alone .dll file?
Code: Select all
    'Connection String
    Public connStr As String = "Database=DB_NAME;" & _
                    "Data Source=DB_HOST;" & _
                    "User Id=DB_USERr;" & _
                    "Password=DB_PASSWORD;" & _
                    "Port=DB_PORT;" & _
                    "Connection Timeout=20"
ie: DB.Conn.dll

Re: Make this .DLL file in VB.NET

Posted: Tue Sep 07, 2010 11:41 am
by mandai
A dll file to store a connection string?

Re: Make this .DLL file in VB.NET

Posted: Tue Sep 07, 2010 1:00 pm
by Scottie1972
Yes.
This wat if I change MySQL host or Login Information, All my app has todo is download the new DB.Conn.dll then it can connect to the proper database server.

I have a working .dll (Thanks Cody) but I am always on the look out for new was of doing things.

Re: Make this .DLL file in VB.NET

Posted: Sat Sep 11, 2010 2:38 pm
by Scottie1972
I have sorted this out.
Thanks to some very helpful members of codenstuff.com