Image Property

K

kirkm

Once an image is assigned to a Form, it sticks, and properties
call it Picture (Bitmap). If you want to change this a Browse
dialog appears.

But what if you, programicably, wanted to change the Picture
to another one, already embedded in another form ? i.e. a
'Pictue bank'.

Can you copy *that* image in - so Picture (Bitmap) now
references it instead?

Thanks - Kirk
 
R

Rick Rothstein

Select the Image control whose bitmap you want to copy; then select the
actual wording, the (Bitmap) word with its parentheses, from the Picture
property and copy it to the Clipboard (either Ctrl+C or Edit/Copy from the
menu bar); now select the second Image control and do one of two things
depending on what you want...

1) If you want the original picture in its original size, just select the
now active Image control's Picture property and paste the Clipboard's
contents to it (either Ctrl+V or Edit/Paste from the menu bar).

2) If you have cropped the image in anyway and you want to preserve that
cropping in the second Image control, select the word (None), with its
surround parentheses, from its Picture property and then paste the
Clipboard's contents to it (again, either Ctrl+V or Edit/Paste from the menu
bar).
 
N

NOPIK

Once an image is assigned to a Form, it sticks, and properties
call it Picture  (Bitmap). If you want to change this a Browse
dialog appears.

But what if  you, programicably, wanted to change the Picture
to another one, already embedded in another form ? i.e. a
'Pictue bank'.

Can you copy *that* image in - so Picture  (Bitmap) now
references it instead?

Thanks - Kirk

you can copy reference to any object with SET

SET MyForm.Picture = AnotherForm.Picture
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top