Advertisement

resource files - vb

Started by November 16, 2000 03:34 AM
0 comments, last by r0ach 24 years, 2 months ago
Hi, I want to store gifs for a cardgame in a resource file, but the problem is getting to display it in a picture box afterwards. The reason is that I can only store bmps as pictures in the resource, so I have to store the gifs as data. When I retrieve it, it is returned as a byte array. How can I display this byte array in a picture box?
As far as I can tell, Pictures can only be loaded by filename. If the picture box had a PictureData property, it would be a different story. My advice is to use bitmaps instead.

If you absolutely must use GIF''s, then try saving them to disk after you extract them from your resource file. You can then delete these copies after they''ve been loaded, because picture boxes retain image data.

GDNet+. It's only $5 a month. You know you want it.

This topic is closed to new replies.

Advertisement