none
How to set default extension for save file dialog in C RRS feed

  • Question

  • Hi,

    Am using save file dialog.

    i should get the default file extension as .xml.

    How perform this

    Friday, December 30, 2011 7:40 PM

Answers

  • try below sample. modify as per your requirement

       SaveFileDialog saveFileDialog1 = new SaveFileDialog();
       saveFileDialog1.Filter = "XML File |*.xml";
       saveFileDialog1.Title = "Save a XML File";
       saveFileDialog1.ShowDialog();
    
    Friday, December 30, 2011 7:50 PM

All replies