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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.