Click to See Complete Forum and Search --> : Multiple pictures in one image control
Jover Labao
September 14th, 2001, 09:05 PM
How can I put multiple pictures in one image control during run-time. For example; If I have one image control, three command control buttons, and 3 picture and I want the pictures in the one image control to change as I click on the different run button during run time? Please Help
JeffB
September 16th, 2001, 04:14 PM
The samplest way is to add all the images you need to use on your form, and make them invisible (property visible at false).
Then, you add one image control that you keep visible
private sub Command1_Click()
'ImageVisible is the image that changes
'Image1 is one of the three invisible image
ImageVisible.Picture = Image1.Picture
end sub
Cakkie
September 16th, 2001, 04:36 PM
You can use Loadpicture to do this
Picture1.Picture = LoadPicture("C:\test.bmp")
Tom Cannaerts
slisse@planetinternet.be
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.