Through ways I don't understand, whenever I open my CommonOpenFileDialog
it opens to the last directory I was in. Awesome! I'd like to access this directory's path string before I open the dialog to show the current directory on screen. Is there a way to do this?
I've tried the following, but get an empty string.
var dialog = new CommonOpenFileDialog();
outputPathTextBox.Text = dialog.InitialDirectory;
dialog = null;