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"?
SaveFileDialog saveFileDialog1 = new SaveFileDialog();
saveFileDialog1.InitialDirectory = @"C:\";
saveFileDialog1.Title = "Save EasyTimesheet CSV";
saveFileDialog1.DefaultExt = "csv";
saveFileDialog1.Filter = "CSV files (*.csv)|*.csv|All files (*.*)|*.*";
saveFileDialog1.FilterIndex = 2; saveFileDialog1.FileName = filenameFormat;
David SmithPosted Dec 28, 2015, 2:55 AM
David SmithPosted Dec 28, 2015, 2:55 AM
David SmithPosted Dec 28, 2015, 2:55 AM
filenameFormat = "C:\Temp\example.csv"Manas MohapatraPosted Dec 28, 2015, 2:50 AM