Path problem referencing a database

NicoVB

Centurion
Joined
Jan 2, 2002
Messages
160
Location
Belgium
I want to connect to a database which is in the directory of all my files??? Does it have to be in the "bin"-directory. And how do I call the path without having a problem afterwards when I try to distribute the application???
 
If you want your database in the location of your executable, to fnd it then you could use Application.StartupPath to get the folder in which the executable is and then add the name of your db file and use that string as the location.
 
Back
Top