Dynamically resizing an image control ???

  • Thread starter Thread starter Don Garry
  • Start date Start date
D

Don Garry

Hello, I have a form which has an image control which links to various jpg
images.

My problem is that the images are not all the same size so in one case the
image looks great but in the next the image is distorted.

Is there a way of dynamically changing the height and width of the image
control to match the linked image ?
 
Hi Don,

Check out Stephen Lebans' "AutosizeOLE" sample:
http://www.lebans.com/autosizeole.htm


Tom

http://www.access.qbuilt.com/html/expert_contributors.html
http://www.access.qbuilt.com/html/search.html
__________________________________________

:

Hello, I have a form which has an image control which links to various jpg
images.

My problem is that the images are not all the same size so in one case the
image looks great but in the next the image is distorted.

Is there a way of dynamically changing the height and width of the image
control to match the linked image ?
 
Hi Tom,
if the OP is using an Image control instead of an OLE Frame control then
they can use the control's ImageWidth and ImageHeight properties AFTER they
have loaded an image into the control.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 

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