Search code examples
c#filebrowse

c# FileBrowse changes path for the rest of my application


i have created a form with FileBrowse control to load a file from. the problem is, after i load a file the application looks for files in the path i'v selected instead of the 'Debug' directory (where files should be...)

how can i avoid it ? is it normal behavior ?


Solution

  • Answered Here: Why does OpenFileDialog change my working directory?

    And Here: Why the current working directory changes when use the Open file dialog in Windows XP ?