Hey guys.
I'm new to VB programming and I'm trying to develop a program where you browse and select a picture, then it opens in a Picturebox. Afterwards you can choose to open that same picture in paint.
My question is, after opening it in paint, making changes to it and saving the picture, how can I make it refresh automatically on the Picturebox with the new changes ?
The code I'm using to open my image in paint is the following :
If CBopen.SelectedItem = "Paint" Then
Process.Start("mspaint.exe", ImgPath)
End If
I managed to do it by adding a "Refresh" button with this code :
ImgPath = OpenFileDialog.FileName
PictureBox1.ImageLocation = ImgPath
but I want it to do it automatically after I save the picture on paint.
Can anyone help me ?


Reply With Quote


