Help database path not current folder

alander

Well-known member
Joined
Jun 26, 2007
Messages
120
Location
Singapore
Programming Experience
5-10
I got a file dialog

i opened a file to read, and then my application starts to find my database file in the folder i opened my file from instead of application.startup path -.-

erm? how can i change it back so it finds my database file in application.startuppath
 
Really I don't understand.
i opened a file to read, then my application starts to find my database file in the folder i opened my file from instead of application.startup path

Your application will open the file from the path you supplied.

To get the FileName of selected file/files from the OpenFileDialog you may use the following statement

VB.NET:
OpenFileDialog1.FileName

To get the application startup path you may use the following statement

VB.NET:
Application.StartupPath
 
Back
Top