SaveFileDialog.CheckFileExists : SaveFileDialog « System.Windows.Forms « C# / C Sharp by API






SaveFileDialog.CheckFileExists

 

using System;
using System.Windows.Forms;

class MainClass {
    static void Main(string[] args) {
        SaveFileDialog dlg = new SaveFileDialog();
        dlg.CheckFileExists = true;

        if (dlg.ShowDialog() == DialogResult.OK) {
            Console.WriteLine(dlg.FileName);
        }
    }
}

   
  








Related examples in the same category

1.new SaveFileDialog()
2.SaveFileDialog.Filter
3.SaveFileDialog.InitialDirectory