After making a picture in something, how can I load it into my program. I know I can make an image or picture box to do it, but I also want to know how to change the picture while the program is running.
Printable View
After making a picture in something, how can I load it into my program. I know I can make an image or picture box to do it, but I also want to know how to change the picture while the program is running.
VB Code:
Picture1.Picture = LoadPicture( "C:\test.bmp" )
VB Code:
Picture1.Picture = LoadPicture(Pic Path) 'To reset pic: Set Picture1.Picture = Nothing
To unload a picture, you can also do this:
Picture1.Picture = LoadPicture("")
Not that it's any easier, but I thought I'd point it out. =)
Since it may open a file stream to the disk, it may be slower. Still, alternatives are alternatives :cool: