Im new to VB.NET but have used VB6 quite a bit. Im writing an app with a picture box that I use as an image browser. ie I set the image to a JPEG picture and when the user hits a key i set it to another JPEG picture etc. But after showing about 20 pictures, it seems to run out of memory. Ive tried using Dispose to unload the current image before loading a new one but it doesnt seem to work. Can anyone tell me what i need to do?
This is what my code does repeatedly:
picPicture.Image = Image.FromFile(FileName)
0 · ·