Ok, so I made a program that resizes pictures, but I cannot figure out how to make it resize using percentages. I have the width property resizing correctly, but the height property won't resize at all...

It is setup like this:
picture1.height = (text1.text / 100) * picture1.height
picture1.width = (text1.text / 100) * picture1.width

Like I said, the width resizes, but the height that is supposed to resize is only a gray area. The picturebox resizes, but it has no picture in that area and the picture is stretched horizontally. Help?

~SirK