PictureBox problems...

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

Nightmare

Guest
Im 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 cant 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 dont know much about the .gif format yet, or graphics in general. Im just wondering why this happens, and if there is any way around it (the whole reason Im using pictureboxes and not an API is because of its easy drag and drop ability).
 
heres a gif file that doesnt work

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

Im pretty sure it has something to do with the fact that the images properties arent 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