Set CheckFileExists to true : Open File Dialog : GUI Windows Form C# Source Code


Custom Search

C# Source Code » GUI Windows Form » Open File Dialog »

 

Set CheckFileExists to true








    
 

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);
        }
    }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo GUI Windows Form
» Open File Dialog