Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27333

VS 2010 [SOLVED] fit image into picturebox

$
0
0
Hi all.

I have a picturebox, but the image is too big to fit into it. Even if the form is maximised, the image is still to big to fit into the picturebox. Changing the sizemode property does not help(StretchImage does fit the picture, but it's proportions are deformed). Essentially what I would like to happen is that the image fits the picturebox perfectly(centered), and if the form is resized, then the image size is scaled appropriately to fit the picturebox. The Windows wallpaper settings allow the image to fit the Window, and I want to achieve the same thing. I do not want use scroll bars. I already have the panel docked to fill the form, and the picturebox docked to fill the panel. How can I achieve this?

Thanks in advance.

Viewing all articles
Browse latest Browse all 27333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>