I'm using SavefileDialog
in C#. However, my SavefileDialog
can't find the desktop folder path.
This is my code:
SaveFileDialog sfd = new SaveFileDialog();
DialogResult result = sfd.ShowDialog(this);
if( result == DialogResult.OK) {
// do something
}
Once SaveFileDialog
is started, this error pops up:
Error: 'C:\Windows\system32\config\systemprofile\Desktop' refers to a location that is unavailable.
Why does the error pop up and how can I solve it?