G
Guest
HI,
I'm using saveFileDialog to get or make a file to save my stirngs to.
saveFileDialog1.Filter = "txt files (*.txt)|*.txt" ; //display dialog
saveFileDialog1.FilterIndex = 2 ;
saveFileDialog1.RestoreDirectory = true ;
DialogResult result2 = saveFileDialog1.ShowDialog();
This displays only txt files.
If the user selects an existing file all goes well.
The problem comes in when the user types in a file name and hits save. Then
the file that gets saved has no extension.
I have the AddExtension in properties set to true and the DefaultExt as txt.
Still no file extension.
What am I doing wrong?
TIA
Bill
I'm using saveFileDialog to get or make a file to save my stirngs to.
saveFileDialog1.Filter = "txt files (*.txt)|*.txt" ; //display dialog
saveFileDialog1.FilterIndex = 2 ;
saveFileDialog1.RestoreDirectory = true ;
DialogResult result2 = saveFileDialog1.ShowDialog();
This displays only txt files.
If the user selects an existing file all goes well.
The problem comes in when the user types in a file name and hits save. Then
the file that gets saved has no extension.
I have the AddExtension in properties set to true and the DefaultExt as txt.
Still no file extension.
What am I doing wrong?
TIA
Bill