From: Chlaris on
Dear all,

I have a form where the user can input the location of image file. To
display the image proportionally, I need to know the image size.
Is there any function to get the image size ?
Thanks.

Amin Ch.


From: John B. Smotherman on
You may not need the image size in order to display it proportionally. If the
image (or unbound) control on the form does not change size, simply set its
size mode property to "zoom" and the picture will proportionally fill the
image control. If you wish to change the size of the image control, based on
the size of the image, simply use the image.sizetofit method to fit the
control to the image.

HTH


"Chlaris" wrote:

> Dear all,
>
> I have a form where the user can input the location of image file. To
> display the image proportionally, I need to know the image size.
> Is there any function to get the image size ?
> Thanks.
>
> Amin Ch.
>
>
> .
>