virtual connection string?

  • Thread starter Thread starter Martin Williams
  • Start date Start date
M

Martin Williams

How do you create a virtual connection string, so that the application will
always look in the local folder where it's stored? This is for vb.net.
Thanks for all replies.

Regards,
Martin Williams
 
¤ How do you create a virtual connection string, so that the application will
¤ always look in the local folder where it's stored? This is for vb.net.
¤ Thanks for all replies.

Could you explain what you mean by "local folder"?

I would recommend using an App.Config file:

http://www.code101.com/Code101/DisplayArticle.aspx?cid=3


Paul ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)
 
Hi Martin,

Martin Williams said:
How do you create a virtual connection string, so that the application will
always look in the local folder where it's stored? This is for vb.net.
Thanks for all replies.

System.IO.Path.GetDirectoryName(System.Windows.Forms.Application.ExecutableP
ath)
Will give you the path to exe file, use it when creating connection string.
 
Back
Top