I'm trying to change the Label.text into the Name choose of the File that i'm going to save. This is the Code:
Dim saveDlg As SaveFileDialog = New SaveFileDialog
saveDlg.Filter = "JPEG (*.jpeg)|*.jpeg |All Files |*.*"
saveDlg.Title = "Save Picture"
saveDlg.InitialDirectory = My.Computer.FileSystem.SpecialDirectories.Desktop
Try
If saveDlg.ShowDialog() = DialogResult.OK Then
PictureBox1.Image.Save(saveDlg.FileName, System.Drawing.Imaging.ImageFormat.Jpeg)
Txtfile.Text = saveDlg.FileName
label14.text = ?????
End If
Catch ex As Exception
'Do Nothing
End Try
i want to change the label text into the File saved names, i want show just the name and not the entire path.
Thanks to all in advance!