Hello All,
I have a picture that is loaded onto a canvas during startup. During program use, it may become desirable to “refresh” the image.
I worked on this for 2 hours, and kind of gave up. To solve it for the moment, I created a new method that would load a blank image, refresh the canvas, then draw the original image followed again, by a refresh.
This works, but I thought maybe someone has a better idea than brute force!
Dim p As String = “e:\temp\blank.jpg”
Dim f As FolderItem = GetFolderItem(P)
If f<> Nil Then
mImage = Picture.Open(f)
End If
frmMain.Canvas1.Refresh
p = trim(App.ManageGraphiX.BackgroundImagePath) + Trim(App.ManageGraphiX.BackgroundImage)
f = GetFolderItem(P)
If f<> Nil Then
mImage = Picture.Open(f)
End If
frmMain.Canvas1.Refresh
Thanks,
Tim