Image property stops picture resizing correctly ? 
Author Message
 Image property stops picture resizing correctly ?


   can any VB gurus out there explain this effect I've been trying to
work around ?

   I have a picture control which I load with the LoadPicture()
function. I then have another control (grid) which allows me to change
the width and height of the picture1 control. While I do this, the
graphic within the picture control resizes along with the control. Fine.

   If I now create an image control, and as a result of a command
button, set the image1.picture = picture1.image, when I now resize the
picture control, the graphic within no longer follows suit.

   If I create a second picture control, and do the following...

        picture2.width = picture1.width
        picture2.height = picture1.height
        picture2 = picture1
        image1.picture = picture2.image seems to work OK.

Any ideas ?

The reason I'm doing this, is to put a graphic into a grid control, and
to have it resize correctly when the column width/row height changes.
Grids don't like ".wmf" graphics, but do like the "image" property of
pictures. Basically, resizing the grid allows me to resize a (hidden)
picture, but as soon as I reference the 'image' property of the image,
the resizing of the picture no longer works.


Fri, 04 Jun 1999 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Pictures in Image list do not display correctly

2. How do you resize an image to fit a Picture box in VB .net

3. Resizing images in Picture boxes?

4. Resize Image in a Picture Box

5. Picture box and resizing image

6. Resizing An Image In a Picture Box

7. Replacing a pictures properties with another pictures properties

8. Setting the picture property of an image

9. Saving and retrieving image control picture property in MSSQL7

10. Picture Property Of Image

11. ActiveX - Image Control - Picture Property

12. aving and retrieving image control picture property in MSSQL7


Powered by phpBB® Forum Software