Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'Menghapus Gambar'
- Try
- My.Computer.FileSystem.DeleteFile(Destination & txtUname.Text & ".jpg")
- Catch ex As Exception
- End Try
- 'Menambah Gambar'
- If System.IO.File.Exists(Destination & txtUname.Text & ".jpg") Then
- MsgBox("Foto Gagal Ubah!", MsgBoxStyle.Information)
- Else
- System.IO.File.Copy(FileAdress, Destination & txtUname.Text & ".jpg")
- End If
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement