Hi,
I am trying to change the image displayed on a canvas during runtime. The image names are stored in a sqlite database.
In View1 the image is shown.
In View 2 is where I can change the name of the image.
So I go from View1 to View2 where I change the name of the image. When I go back to View1, I want the image to change to the new picture.
In the Paint Event of the Canvas, I have this code:
[code] Select Case txtScreen.Text
Case “Image1”
g.DrawImage(Picture1, 0, 0)
Case “Image2”
g.DrawImage(Picture2, 0, 0)
End Select[/code]
How can I refresh the canvas so it fires the paint event when I get back to View1
I don’t see and Refresh. Any help would be appreciated.