Usin Picture on userform

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I am creating some userforms and just wondered if someone could tell me if i
put a picture box on the userform, how do i get a picture on it?

Some sample code or explanation would be useful,

Thanks
Andy
 
There is an image control that you can load a picture into.

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
Andy,

After you insert the image box, look at the properties. There are three
properties you'll be using:

1) Picture: It will be "(None)" by default. Click in the Properties cell,
then click the ellipsys button ("..."). You will see a Load Picture dialog
box. Browse until you find your image and then click the "Open" button.

2) PictureAlignment: This determines where the picture is anchored within
your image box.

3) PictureSizeMode: This determines the scaling used:
fmPictureSizeModeClip - Image is loaded into the box at 100%
fmPictureSizeModeStretch - Image is loaded to fit the full dimensions of
the image box
fmPictureSizeModeZoom - Image is loaded to fit the largest dimension of
the image box without changing its aspect ratio.

-Glenn Ray
MOS Master
 
Thanks all

Glenn Ray said:
Andy,

After you insert the image box, look at the properties. There are three
properties you'll be using:

1) Picture: It will be "(None)" by default. Click in the Properties cell,
then click the ellipsys button ("..."). You will see a Load Picture dialog
box. Browse until you find your image and then click the "Open" button.

2) PictureAlignment: This determines where the picture is anchored within
your image box.

3) PictureSizeMode: This determines the scaling used:
fmPictureSizeModeClip - Image is loaded into the box at 100%
fmPictureSizeModeStretch - Image is loaded to fit the full dimensions of
the image box
fmPictureSizeModeZoom - Image is loaded to fit the largest dimension of
the image box without changing its aspect ratio.

-Glenn Ray
MOS Master
 

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

Back
Top