AccessVBA

Murray Brown
Murray Brown used Ask the Experts™
on
Hi

I have an Access form where different images are loaded to a control. Is there a way to stretch he image to a larger size that looks the same no matter what size the original image is?

Thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Software & Systems Engineer
Commented:
Do you mean at runtime ?
All the available sizing properties are read/write even on compiled
e.g.put it in the Click event of a Button (e.g btnResize)
Me.SomeControl.Width = Me.SomeControl.Width * 2

Open in new window

John TsioumprisSoftware & Systems Engineer
Commented:
If you want to match the control to the image...you will need to read the Image size and do a Pixel to cm/inches
take a look here : http://www.unitconversion.org/typography/pixels-x-to-centimeters-conversion.html
Most Valuable Expert 2015
Distinguished Expert 2018
Commented:
Set the property SizeMode of the picture control to: Zoom
Murray BrownASP.net/VBA/VSTO Developer

Author

Commented:
Thanks very much

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial