FileDialog (SaveFileDialog & OpenFileDialog) does not add extension

  • Thread starter Thread starter maxkukartsev
  • Start date Start date
M

maxkukartsev

I use FileDialog's quite often, but this one thing really bothers me:
The FileDialog.AddExtension property is supposed to control whether the
extension of the selected filter is automatically appended to the
filename or not, also depending on the CheckFileExists property
(according to
http://msdn2.microsoft.com/en-us/library/system.windows.forms.filedialog.addextension.aspx).
However, with FileDialog.AddExtension set to true and regardless of the
state of FileDialog.CheckFileExists propetry, the extension is NOT
appended to the filename. Can someone please help me why this is?
(For information, I used the filter "C-Sharp Files|*.cs|Text
Files|*.txt|All Files|*.*" and DefaultExtension "cs" if it makes any
difference)
 
Back
Top