PictureBox problems...

  • Thread starter Thread starter Nightmare
  • Start date Start date
N

Nightmare

Guest
I'm having a problem with the picturebox control in VB .NET. Most images I put into the picturebox work fine in .NET, however when I try to put certain .gif files in a picturebox the program crashes. These pictures work fine in VB 6, but for some reason I just can't get them into the picturebox in .NET. A few other .gifs I have also appear distorted at the bottom of the picture. Once again, these show up fine in VB 6 pictureboxes.

I don't know much about the .gif format yet, or graphics in general. I'm just wondering why this happens, and if there is any way around it (the whole reason I'm using pictureboxes and not an API is because of it's easy drag and drop ability).
 
here's a gif file that doesn't work

Here is an example of a .gif that doesn't work in VB.NET but works in VB 6.

I'm pretty sure it has something to do with the fact that the image's properties aren't set on this .gif (horizontal/vertical resolution, bit depth, etc.). Is this an old version of the .gif format or something?

I believe that if I opened it in Microsoft Paint and saved it again then it would contain these needed properties. The problem is that I have quite a few pictures that are like this that I would need to do this for...
 
Back
Top