I see strange behavior of SaveFileDialog. I expect that FileName property contains full path to new file. And I don't have idea how to know where to save file. Dialog object dump follows (after user selected file):
_autoUpgradeEnabled true bool
_customPlaces Count = 0 System.Windows.Forms.FileDialogCustomPlacesCollection
AddExtension true bool
AutoUpgradeEnabled true bool
charBuffer null System.Windows.Forms.UnsafeNativeMethods.CharBuffer
CheckFileExists false bool
CheckPathExists true bool
CustomPlaces Count = 0 System.Windows.Forms.FileDialogCustomPlacesCollection
DefaultExt "" string
defaultExt null string
DereferenceLinks true bool
DialogCaption "" string
dialogHWnd 0 System.IntPtr
FileName "temp.flg" string
fileNames {string[1]} string[]
FileNames {string[1]} string[]
FileNamesInternal {string[1]} string[]
Filter "TIFF (*.tif)|*.tif|Multipage image (*.tif)|*.tif|GIF (*.gif)|*.gif|PNG (*.png)|*.png|JPEG (*.jpg)|*.jpg|Bitmap (*.bmp)|*.bmp|VASoftOnline Flow Chart (*.flg)|*.flg" string
filter "TIFF (*.tif)|*.tif|Multipage image (*.tif)|*.tif|GIF (*.gif)|*.gif|PNG (*.png)|*.png|JPEG (*.jpg)|*.jpg|Bitmap (*.bmp)|*.bmp|VASoftOnline Flow Chart (*.flg)|*.flg" string
FilterExtensions {string[1]} string[]
filterIndex 7 int
FilterIndex 7 int
FilterItems {System.Windows.Forms.FileDialogNative.COMDLG_FILTERSPEC[7]} System.Windows.Forms.FileDialogNative.COMDLG_FILTERSPEC[]
ignoreSecondFileOkNotification false bool
initialDir null string
InitialDirectory "" string
Instance 16449536 System.IntPtr
okNotificationCount 0 int
Options 2052 int
options -2147481594 int
RestoreDirectory false bool
securityCheckFileNames false bool
SettingsSupportVistaDialog true bool
ShowHelp false bool
supportMultiDottedExtensions false bool
SupportMultiDottedExtensions false bool
title null string
Title "" string
UseVistaDialogInternal true bool
ValidateNames true bool
CreatePrompt false bool
OverwritePrompt true bool
You can see in dump that FileName = "temp.flg" without any information about path. Do anyone saw that problem in his software? Are there ideas how to fix it?