Code Snippet
- dlg.FileName = "Image"; // Default file name
- dlg.DefaultExt = ".bmp"; // Default file extension
- dlg.Filter = "Bitmap File (.bmp)|*.bmp"; // Filter files by extension
- // Show save file dialog box
- Nullable<bool> result = dlg.ShowDialog();
- // Process save file dialog box results
- if (result == true)
- {
- // Use filename here if required!
- string filename = dlg.FileName;
- }
End of Code Snippet
No comments:
Post a Comment