I wanted to add something to this topic
I noticed this when using the CurrentWorkingDirectory path changes when i reboot my system and let my system end my application. When windows starts my program from the registry run even the CurrentWorkingDirectory changes to UserHome directory for some reason idk why this happens just make sure to compare your path with the CurrentWorkingDirectory if you use this special folder.
Here is an example
#If DebugBuild Then
If SpecialFolder.CurrentWorkingDirectory.AbsolutePath = SpecialFolder.UserHome.AbsolutePath Then
I have my app change the start up path in my APP close event. If you have your startup path change with a check box/push button and not a open/close event then more then most likely you wont have to use the following code above.
Hope this helps