-
I am currently loading 16 Image controls to hold transparent .GIF files. I was wondering if there is a way that I use the LoadPicture to load the four possible graphics, and then display as needed by altering the Picture property of the Image Control? Below is an example of what information I'm missing...
dim myImage as <I don't know the type...>
myImage = LoadPicture("Image.GIF"
imgControl.Picture = myImage
Can someone please give me a hand filling in the blank spaces?
Daryl Jones
-
No problem - just dim your variable As Object, like so:
Code:
Dim objPic As Object
Set objPic = LoadPicture(PicPath)
Picture1.Picture = objPic
PicPath is the path to the image... I tested with a BMP, and I assume if LoadPicture works with GIF files, then the above should work... Good Luck!