Originally Posted by
balexei
Thank you for the replies!!! But it is not exactly what I am looking for, perhaps I have not explained the issue very well. The InitialDirectory of my OpenFileDialog should not be connected to the path for the executable. It should be connected to the path that the program used during the previous execution, i.e. I opened the file using the OpenFileDialog, did something with it and than closed the whole application.
Upon restarting the application (i.e. executing the executable for the second time) I want the InitialDirectory to be initialized to what I used before.
Any ideas???