I have an issue with the PictureBox control in VB.NET (2.0) not loading an image the second time around. It loads the first one fine, but when the "Image.FromFile" method points to a new picture path, it never does (or never loads or re-loads the picture).
Refresh() method does not do anything, neither does refreshing the form.
Setting the .Image property to "nothing" before re-assigning it, has no effect, either.
The PictureBox control loads only once, then never loads again no matter what.
The file type is a JPEG and the Operating System is Windows Vista Ultimate SP1, I am debugging in VS2008 Standard (I figure this is a bug with the FromFile property for this OS or VS or DotNet3.5, but I need a workaround).
Me.PictureBox1.Image = Nothing 'executes, but does not set it to nothing
Me.PictureBox1.Image = Image.FromFile(finalmediumPath) 'only works once
Me.PictureBox1.Refresh() 'redraws the first image loaded, changing image has no effect
Me.Refresh 'worthless - redraws form, but first image always remains