MelissaEvans
Programmer
I have an image control on a form that I need to be able to move. There are some command buttons that alter the height, width, and so forth with code like
I have a picture inside the image control, and the stretch property is set to true. I want the picture to take up the whole size of the image control when it is altered.
For now, when the image height/width is altere, the control disappears altogether from the form. When it is returned to its original value, it reappears. This happens when the image is a bitmap or a jpeg. I've tried this on another computer, and it works, but I don't see what the difference is (there's far too many possibilities since I don't know what to look for). It worked on the computer running VB6SP3, not on VB6SP4 which was updated to VB6SP5 and still didn't work.
I tried a different mode of attack and switched to a picture box control. Since there is no Stretch property, I had found and used the code
when the height/width property changed. The picture didn't disappear, which was good, but it didn't stretch either. *sigh*
Has anyone else had this situation? Any suggestions?
~Melissa
Code:
image1.height = image1.heigh + 60
For now, when the image height/width is altere, the control disappears altogether from the form. When it is returned to its original value, it reappears. This happens when the image is a bitmap or a jpeg. I've tried this on another computer, and it works, but I don't see what the difference is (there's far too many possibilities since I don't know what to look for). It worked on the computer running VB6SP3, not on VB6SP4 which was updated to VB6SP5 and still didn't work.
I tried a different mode of attack and switched to a picture box control. Since there is no Stretch property, I had found and used the code
Code:
ThisControl.PaintPicture ThisControl.Picture, 0, 0, ThisControl.ScaleWidth, ThisControl.ScaleHeight
Has anyone else had this situation? Any suggestions?
~Melissa