I do not want to have the "All File" come up as an option in the savefiledialog box. What is the correct format below? I get an error when I remove "All Files"?
Code
SaveFileDialog saveFileDialog1 = new SaveFileDialog();Code
saveFileDialog1.InitialDirectory = @"C:\";Code
saveFileDialog1.Title = "Save EasyTimesheet CSV";Code
saveFileDialog1.DefaultExt = "csv";Code
saveFileDialog1.Filter = "CSV files (*.csv)|*.csv|All files (*.*)|*.*";Code
saveFileDialog1.FilterIndex = 2;Code
saveFileDialog1.FileName = filenameFormat;
Manas MohapatraRank #182 · 13.2K reputationPosted Dec 27, 2015, 9:50 PM EST
David SmithRank #999 · 2K reputationPosted Dec 27, 2015, 9:55 PM EST
David SmithRank #999 · 2K reputationPosted Dec 27, 2015, 9:55 PM EST
David SmithRank #999 · 2K reputationPosted Dec 27, 2015, 9:55 PM EST