After using the OpenFileDialog for selecting a file the Environment.CurrentDirectory changes to the folder of the file. Is this normal?
From my understanding Environment.CurrentDirectory should always be the application folder.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Because the dialog box changes the Environment.CurrentDirectory while searching for files or folders .. or selecting them for upload..etc..
Note: as indicated in the comment to you question, following the link to the duplicate question.. use