Link to home
Start Free TrialLog in
Avatar of adwooley2
adwooley2

asked on

VB.NET 2005 picturebox: resizing and retaining aspect ratio

Hello.  I have a VB.NET 2005 picturebox to work with.  I also have several images that vary in size.  When an image is loaded into the picturebox, I want to resize the image so that it has a width of 500, and I want to retain the aspect ratio for the height.  So, it should be resized to 500 x ? and be fully displayed in a form (not clipped and not stretched).  How do I go about this?
ASKER CERTIFIED SOLUTION
Avatar of Wayne Taylor (webtubbs)
Wayne Taylor (webtubbs)
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of adwooley2
adwooley2

ASKER

Well, I adapted what you had.  Thanks for your simple solution!

Regards,
Alan