C# winforms Picturebox, backgroundimage zoomed at the top?

By far the simplest solution is to just change the Size property of the picture box so that the image can be drawn without padding. Implementing your own Paint event handler is possible too, not exactly necessary here I presume.

– Oskar Kjellin May 14 '10 at 15:18 Changing the size causes a Paint event. Not an issue, setting the BackgroundImage property does as well.Do it at the same time and you'll get only one. – Hans Passant May 14 '10 at 15:49.

I have a picturebox where I change the BackgroundImage frequently. I have a the BackgroundImageLayout set to Zoom. The problem is that when an image does not have the same scale as the picturebox, the picture is drawn in the middle.

That is, the top and the bottom padding of the picturebox is always the same. I would like for the BackgroundImage to always be aligned at the top. What is the easiest and most performance efficient way of doing this?

I can add that I download the images from the internet.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions