Dynamically resizing an image control ???

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 ?
 
T

Tom Wickerath

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 ?
 
S

Stephen Lebans

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.
 
Top