LoadPicture(FileName) with size?

C

Charlotte E.

I have the following line in my VBA code:

Image1.Picture = LoadPicture(FileName)

....and it works fine :)


But, since the picture is being shown in a UserForm, I would like to make
sure that it gets loaded in the right size, so I use:

Image1.Picture = LoadPicture(FileName), 400, 300

....but for some reason this goes wrong?!?

Even that the LoadPicture have both [widthDesired As Long] and
[heightDesired As Long] options?

What am I doing wrong???


TIA,
 
N

Nigel

All parameters should be enclosed e.g.

Image1.Picture = LoadPicture(FileName, 400, 300)
 
C

Charlotte E.

That's it - thanks :)


Nigel said:
All parameters should be enclosed e.g.

Image1.Picture = LoadPicture(FileName, 400, 300)


--

Regards,
Nigel
(e-mail address removed)



Charlotte E. said:
I have the following line in my VBA code:

Image1.Picture = LoadPicture(FileName)

...and it works fine :)


But, since the picture is being shown in a UserForm, I would like to make
sure that it gets loaded in the right size, so I use:

Image1.Picture = LoadPicture(FileName), 400, 300

...but for some reason this goes wrong?!?

Even that the LoadPicture have both [widthDesired As Long] and
[heightDesired As Long] options?

What am I doing wrong???


TIA,
 

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