|
-
September 14th, 2001, 09:05 PM
#1
Multiple pictures in one image control
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
-
September 16th, 2001, 04:14 PM
#2
Re: Multiple pictures in one image control
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
-
September 16th, 2001, 04:36 PM
#3
Re: Multiple pictures in one image control
You can use Loadpicture to do this
Picture1.Picture = LoadPicture("C:\test.bmp")
Tom Cannaerts
[email protected]
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|