Hello Sandra,
What you can do, it using an imagelist (project -> components -> microsoft
windows common controls 5.0 / or 6.0).
Open the imagelist's property dialog (right mouse click on the control ->
properties) and add the image to the list.
Fill some name in the key box (e.g. "MyPic").
Then bind the imagecontrol and the picturebox to the imagelist:
Image1.Picture = ImageList1.ListImages.Item("MyPic").Picture
Picture1.Picture = ImageList1.ListImages.Item("MyPic").Picture
and voila !
Good luck,
Ramon.
"Sandra Setz" <ss***@wxs.nl> wrote in message
news:74**************************@posting.google.c om...
Hi,
Is it possible to assign the Picture property of a picturebox to the
Picture property of an image control?
I use an invisble picturebox to make some changes to a picture, but I
want to show the picture in an imagecontrol, since the image is very
large and I want to stretch it.
But when I execute the following code:
Image1.Picture = Picture1.Picture
Image1.Refresh
The image control Image1 stays empty. What am I doing wrong?
Thanks in advance,
Sandra