'detination filename Dim newFileName As String = "C:\NewImages\NewFileName.jpg" ' if the user presses OK instead of Cancel If openFileDialog1.ShowDialog() = DialogResult.OK Then 'get the selected filename Dim filename As String = openFileDialog1.FileName 'copy the file to the new filename location and overwrite if it already exists '(set last parameter to false if you don't want to overwrite) System.IO.File.Copy(filename, newFileName, True) End If
newFileName
SaveFileDialog
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)