An invalid graphics format was assigned to the Picture property. This error has the following cause and solution:

  • You tried to assign a graphics format other than a bitmap, icon, or Windows metafile to thePicture property of a form or control. Ensure that the file you are trying to load into the Pictureproperty is a valid graphics file supported by Visual Basic.

Only a picture can be assigned to the Pictureproperty or Picture object. This error has the following cause and solution:

  • You attempted to assign something to a Picture property or a Picture object that isn’t recognized as an icon, bitmap, or Microsoft Windows metafile. See the Help topics for the Picture object or Picture property of the object you’re using to determine the acceptable picture types.