create file save dialog
Published: 14. December 2008 | Updated: 14. December 2008License: Microsoft Public License (MS-PL)
Categories: Winforms
Tags: C# File System UI Winforms
Import namespace
using System.Windows.Forms;
Code
SaveFileDialog dialog = new SaveFileDialog(); dialog.Title = "Save file as..."; dialog.Filter = "Text files (*.txt)|*.txt|All files (*.*)|*.*"; dialog.RestoreDirectory = true; if (dialog.ShowDialog() == DialogResult.OK) { MessageBox.Show(dialog.FileName); }
| Send us feedback about this snippet » |





