
Resource Files...adding and using images.....................
I have 5 images that I want to package with my program, 4 of them are very
small, and one is a large background. I want to load them all at the
beginning, so I put this in the form load event:
LoadResPicture(103, vbResBitmap) As IPictureDisp
LoadResPicture(105, vbResBitmap) As IPictureDisp
LoadResPicture(104, vbResBitmap) As IPictureDisp
LoadResPicture(102, vbResBitmap) As IPictureDisp
LoadResPicture(101, vbResBitmap) As IPictureDisp
The respective file names are Game.bmp, rmirror.bmp, lmirror.bmp, brmirror.bmp,
blmirror.bmp. Unfortunately, from all of the documentation, out of 6 VB books
and
my MSDN library have nothing more than the above syntax........and only
instructions on how to put the files in the .RES file. They do not tell me
how to
assign the pictures to each picture box, and also, the code above does not seem
to work, so I must be missing quite a bit of what I really need to do. What
am I missing?
There is more faith in honest doubt than in all creeds combined.
http://www.*-*-*.com/
Free - A VB strings function tutor! - Now Updated with VB6 Functions!
Latin, History, Great Pyramid, Spanish Castle.